We have approximately 100 tests that have to hit half-dozen different systems. I am using Maven (Surefire is configured to run 2C non-reusable forks) and JUnit to run everything. All code is very simple, I do not believe in some fancy wrappers.
When I run my tests on local machine all tests pass on the first try. Every time.
We also run our tests in CI: GitLab pipelines. I am using
this guide to configure a remote chrome driver. Very often (about 4/5 runs) portion of our tests (maybe 1/4) fail with SessionNotCreatedException. I do not know how I would even begin to debug this problem. I am hoping the community here would be able to give me some ideas / pointers.
TIA.