In Chapter 6, Testing and Continuous Integration, we saw that some of the e2e tests were commented out because of the difficulty in generating tests for an entity with a required relationship. Try to fix the tests with the following approach:
- Add a method to delete entities after creation, similar to what we saw in Chapter 6, Testing and Continuous Integration, for the customer entity spec.
- Uncomment the commented-out e2e tests in the files under src/test/javascript/e2e/entities.
- Navigate the protractor to the related entity page and create a new item. If the related entity has required relationships, then follow the same approach and nest them until all the required entities are in place. This can be done in ...