I am working on an application which has 2 modules.
I am unable to run any E2E tests for my application as it is not starting before the tests run. I have below defined in the test class which should bring up the application context but it seems it does not.
@ContextConfiguration(classes=Application.class, loader = SpringBootContextLoader.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
The application does start fine and run proper on localhost:8080
when I start the application normally using the run button in my IDE. I am not sure why does the application not come up when I try to run the tests.
Is it because of the different modules?
The issue was not with the modules. There were 2 issues,
chromeOptions.addArguments("allow-insecure-localhost");