Skip to content

Commit 788ea94

Browse files
committed
OP-551: Add a chrome browser container
1 parent cd67063 commit 788ea94

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

behat.yml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ default:
1919

2020
Behat\MinkExtension:
2121
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
22-
base_url: "https://127.0.0.1:8080/"
22+
base_url: "https://app"
2323
default_session: symfony
2424
javascript_session: chrome_headless
2525
sessions:
2626
symfony:
2727
symfony: ~
2828
chrome_headless:
2929
chrome:
30-
api_url: http://127.0.0.1:9222
30+
api_url: http://chrome:9222
3131
validate_certificate: false
3232
chrome:
3333
selenium2:

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ services:
5959
networks:
6060
- sylius
6161

62+
# use if you want to run Behat tests in the app container
63+
# chrome:
64+
# image: zenika/alpine-chrome:124
65+
# shm_size: "2gb"
66+
# command: "--enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*'"
67+
# volumes:
68+
# - .:/srv/sylius:rw,cached
69+
# ports:
70+
# - "9222:9222"
71+
# networks:
72+
# - sylius
73+
6274
networks:
6375
sylius:
6476
driver: bridge

0 commit comments

Comments
 (0)