@@ -147,7 +147,7 @@ clean-js: FORCE
147147
148148# Default `SUB_FILE` to empty
149149SUB_FILE: =
150-
150+ PYTEST_BROWSERS: = --browser webkit --browser firefox --browser chromium
151151install-playwright : FORCE
152152 playwright install --with-deps
153153
@@ -160,15 +160,15 @@ install-rsconnect: FORCE
160160
161161# end-to-end tests with playwright; (SUB_FILE="" within tests/playwright/shiny/)
162162playwright-shiny : install-playwright
163- pytest tests/playwright/shiny/$(SUB_FILE )
163+ pytest tests/playwright/shiny/$(SUB_FILE ) $( PYTEST_BROWSERS )
164164
165165# end-to-end tests on deployed apps with playwright; (SUB_FILE="" within tests/playwright/deploys/)
166166playwright-deploys : install-playwright install-rsconnect
167- pytest tests/playwright/deploys/$(SUB_FILE )
167+ pytest tests/playwright/deploys/$(SUB_FILE ) $( PYTEST_BROWSERS )
168168
169169# end-to-end tests on all py-shiny examples with playwright; (SUB_FILE="" within tests/playwright/examples/)
170170playwright-examples : install-playwright
171- pytest tests/playwright/examples/$(SUB_FILE )
171+ pytest tests/playwright/examples/$(SUB_FILE ) $( PYTEST_BROWSERS )
172172
173173playwright-debug : install-playwright # # All end-to-end tests, chrome only, headed; (SUB_FILE="" within tests/playwright/)
174174 pytest -c tests/playwright/playwright-pytest.ini tests/playwright/$(SUB_FILE )
@@ -178,10 +178,10 @@ playwright-show-trace: ## Show trace of failed tests
178178
179179# end-to-end tests with playwright and generate junit report
180180testrail-junit : install-playwright install-trcli
181- pytest tests/playwright/shiny/$(SUB_FILE ) --junitxml=report.xml
181+ pytest tests/playwright/shiny/$(SUB_FILE ) --junitxml=report.xml $( PYTEST_BROWSERS )
182182
183183coverage : FORCE # # check combined code coverage (must run e2e last)
184- pytest --cov-report term-missing --cov=shiny tests/pytest/ tests/playwright/shiny/$(SUB_FILE )
184+ pytest --cov-report term-missing --cov=shiny tests/pytest/ tests/playwright/shiny/$(SUB_FILE ) $( PYTEST_BROWSERS )
185185 coverage html
186186 $(BROWSER ) htmlcov/index.html
187187
0 commit comments