https://circleci.com/docs/2.0/browser-testing/#selenium
I’d start here.
I’m not running selinium, but our browser testing has 2 tricky parts worth keeping in mind,
Start a local server as background task, and wait on it to be serving (all of this can be skipped if you’re testing against a cloud environment)
- run:
name: Start
command: << yourCommandHere >>
background: true
- run:
name: Wait-on <<parameters.wait-on>>
command: npx wait-on <<parameters.wait-on>>
Then trigger your tests.