Skip to content

Commit

Permalink
[Behat] Switch JS session driver to Symfony Panther
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed May 13, 2024
1 parent 0c097b7 commit 64f2d02
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/behat.yml
/phpspec.yml

/drivers/

/bin/*
!/bin/console
###> phpunit/phpunit ###
Expand Down
36 changes: 15 additions & 21 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ default:

extensions:
DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
Robertfausk\Behat\PantherExtension: ~

FriendsOfBehat\MinkDebugExtension:
directory: etc/build
Expand All @@ -20,41 +21,34 @@ default:
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
base_url: "https://127.0.0.1:8080/"
default_session: symfony
javascript_session: chrome_headless
javascript_session: panther
sessions:
symfony:
symfony: ~
chrome_headless:
chromedriver:
chrome:
api_url: http://127.0.0.1:9222
validate_certificate: false
chrome:
selenium2:
browser: chrome
capabilities:
browserName: chrome
browser: chrome
version: ""
marionette: null # https://github.com/Behat/MinkExtension/pull/311
chrome:
switches:
- "start-fullscreen"
- "start-maximized"
- "no-sandbox"
extra_capabilities:
panther:
panther:
manager_options:
connection_timeout_in_ms: 5000
request_timeout_in_ms: 120000
chromedriver_arguments:
- --log-path=etc/build/chromedriver.log
- --verbose
capabilities:
acceptSslCerts: true
acceptInsecureCerts: true
unexpectedAlertBehaviour: accept
goog:chromeOptions:
w3c: false # https://github.com/Sylius/Sylius/issues/10561
firefox:
selenium2:
browser: firefox
show_auto: false

FriendsOfBehat\SymfonyExtension: ~

FriendsOfBehat\VariadicExtension: ~

SyliusLabs\SuiteTagsExtension: ~

gherkin:
filters:
tags: "~@todo && ~@cli" # CLI is excluded as it registers an error handler that mutes fatal errors
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"require-dev": {
"behat/behat": "^3.6.1",
"behat/mink-selenium2-driver": "^1.3",
"dbrekelmans/bdi": "^1.3",
"dmore/behat-chrome-extension": "^1.3",
"dmore/chrome-mink-driver": "^2.7",
"friends-of-behat/mink": "^1.8",
Expand All @@ -41,6 +42,7 @@
"lchrusciel/api-test-case": "^5.0",
"phpspec/phpspec": "^7.0",
"phpunit/phpunit": "^8.5",
"robertfausk/behat-panther-extension": "^1.1",
"stripe/stripe-php": "^4.1",
"sylius-labs/coding-standard": "^4.0",
"symfony/browser-kit": "^6.0",
Expand Down

0 comments on commit 64f2d02

Please sign in to comment.