-
Notifications
You must be signed in to change notification settings - Fork 4
/
behat_headless.yml
35 lines (35 loc) · 1.64 KB
/
behat_headless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
default:
suites: []
extensions:
SilverStripe\BehatExtension\MinkExtension:
default_session: facebook_web_driver
javascript_session: facebook_web_driver
facebook_web_driver:
browser: chrome
wd_host: "http://127.0.0.1:9515"
capabilities:
extra_capabilities:
chromeOptions:
args:
# no sandbox is required to run chromium inside a container https://stackoverflow.com/a/59154049
- "--no-sandbox"
# run headless within container - removes the need for xvfb
- "--headless"
# disable gpu is often mentioned as fix after headless chrome suddenly breaks after an update
# leaving it in just in case to prevent hard to diagnose errors later
- "--disable-gpu"
# the following options have been used in dev to fix various issues.
# not sure which ones# are actually required, but it works with thi
# configuration and these may fix future problems
#https://stackoverflow.com/a/43840128/1689770
- "--disable-infobars"
# https://stackoverflow.com/a/50725918/1689770
- "--disable-dev-shm-usage"
# https://stackoverflow.com/a/49123152/1689770
- "--disable-browser-side-navigation"
# https://stackoverflow.com/a/55371396/491553
- "--disable-features=VizDisplayCompositor"
browser_name: chrome
SilverStripe\BehatExtension\Extension:
screenshot_path: '%paths.base%/artifacts/screenshots'
is_ci: true