Easiest way is to just run a local docker with selenium-chrome in it
# On Mac:
docker run -d -p 4444:4444 --name selenium selenium/standalone-chrome:3.141.59
# On Linux:
docker run -d -p 4444:4444 -v /dev/shm:/dev/shm --name selenium selenium/standalone-chrome:3.141.59
pytest -rw -s --hadashboard-url http://$HASS_IP:5050 --homeassistant-url http://$HASS_IP:8123 --homeassistant-token "$(vault-get 'local_integrations')" test_homeassistant.py::test_group_entities
# Run tests marked as 'sanity'
pytest -rw -s -m sanity --hadashboard-url http://$HASS_IP:5050 --homeassistant-url http://$HASS_IP:8123 --homeassistant-token "$(vault-get 'local_integrations')"
# Build the test container
# From the tests/ directory:
docker build -t casa-tests .
# Against
docker run casa-tests pytest -rw -s --hadashboard-url http://$HASS_IP:5050 --homeassistant-url http://$HASS_IP:8123 --homeassistant-token "$(vault-get 'local_integrations')" --remote-driver-url http://127.0.0.1:4444/wd/hub test_homeassistant.py::test_group_entities