diff --git a/.gitignore b/.gitignore index 06fc6f5..64c5c20 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,8 @@ /behat.yml /phpspec.yml +/drivers/ + /bin/* !/bin/console ###> phpunit/phpunit ### diff --git a/behat.yml.dist b/behat.yml.dist index b195cff..8ff87ea 100644 --- a/behat.yml.dist +++ b/behat.yml.dist @@ -10,6 +10,7 @@ default: extensions: DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~ + Robertfausk\Behat\PantherExtension: ~ FriendsOfBehat\MinkDebugExtension: directory: etc/build @@ -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 diff --git a/composer.json b/composer.json index 6b835cf..a96d54e 100644 --- a/composer.json +++ b/composer.json @@ -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", @@ -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",