Skip to content

Commit

Permalink
Update Behat test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
RadnoK committed Dec 30, 2023
1 parent a5a00f6 commit f0f55b0
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 245 deletions.
69 changes: 0 additions & 69 deletions Dockerfile

This file was deleted.

63 changes: 0 additions & 63 deletions Makefile

This file was deleted.

50 changes: 13 additions & 37 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ imports:
- vendor/sylius/sylius/src/Sylius/Behat/Resources/config/suites.yml

default:
formatters:
pretty:
verbose: true
paths: false
snippets: false

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

Expand All @@ -22,6 +28,10 @@ default:
chrome:
api_url: http://127.0.0.1:9222
validate_certificate: false
chrome_headless_second_session:
chrome:
api_url: http://127.0.0.1:9222
validate_certificate: false
chrome:
selenium2:
browser: chrome
Expand Down Expand Up @@ -53,40 +63,6 @@ default:
paths:
- "vendor/sylius/sylius/features"

docker:
extensions:
Behat\MinkExtension:
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
base_url: "http://php:8080/"
default_session: symfony
javascript_session: chrome_headless
sessions:
symfony:
symfony: ~
chrome_headless:
chrome:
api_url: http://chrome:9222
validate_certificate: false
chrome_docker:
chrome:
api_url: http://chrome: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:
unexpectedAlertBehaviour: accept
firefox:
selenium2:
browser: firefox
show_auto: false
gherkin:
filters:
tags: "~@todo&&~@cli" # CLI is excluded as it registers an error handler that mutes fatal errors
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
],
"require": {
"php": "^7.4 || ^8.0",
"sylius/sylius": "~1.8.0 || ~1.9.0 || ~1.10.0 || ~1.11.0 || ~1.12.0",
"sylius/sylius": "1.12.*",
"symfony/webpack-encore-bundle": "^1.12"
},
"require-dev": {
"behat/behat": "^3.6.1",
"behat/behat": "^3.13.0",
"behat/mink-selenium2-driver": "^1.4",
"dmore/behat-chrome-extension": "^1.3",
"dmore/chrome-mink-driver": "^2.7",
Expand Down
64 changes: 0 additions & 64 deletions docker-compose.yml

This file was deleted.

10 changes: 0 additions & 10 deletions ecs.php

This file was deleted.

3 changes: 3 additions & 0 deletions tests/Application/config/services_test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
imports:
- { resource: "../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml" }

# workaround needed for strange "test.client.history" problem
# see https://github.com/FriendsOfBehat/SymfonyExtension/issues/88
services:
Expand Down

0 comments on commit f0f55b0

Please sign in to comment.