Skip to content

Commit

Permalink
Configure browser in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
khustochka committed Dec 25, 2024
1 parent 8fc04f6 commit 12d6d0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_old_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
ruby: ['3.2']
driver:
- name: Chrome
js_driver: selenium
js_browser: headless_chrome
js_driver: playwright
js_browser: chromium
# - name: Firefox
# js_driver: selenium
# js_browser: headless_firefox
# js_driver: playwright
# js_browser: firefox
services:
postgres:
image: postgres:17-alpine
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ jobs:
ruby: ['3.3.6']
driver:
- name: Chrome
js_driver: selenium
js_browser: headless_chrome
js_driver: playwright
js_browser: chromium
# - name: Firefox
# js_driver: selenium
# js_browser: headless_firefox
# js_driver: playwright
# js_browser: firefox
services:
postgres:
image: postgres:17-alpine
Expand Down
1 change: 1 addition & 0 deletions test/application_system_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
WebMock.disable_net_connect!(allow_localhost: true)

# Playwright: https://justin.searls.co/posts/running-rails-system-tests-with-playwright-instead-of-selenium/
# To install: yarn run playwright install

default_driver = :playwright
$js_driver = ENV["JS_DRIVER"]&.to_sym || default_driver
Expand Down

0 comments on commit 12d6d0d

Please sign in to comment.