-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.playwright.yml
More file actions
39 lines (39 loc) · 1.43 KB
/
config.playwright.yml
File metadata and controls
39 lines (39 loc) · 1.43 KB
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
36
37
38
39
#ddev-generated
hooks:
pre-start:
# If Playwright is enabled, make sure we get any changes.
- exec-host: |
([[ -f .ddev/web-build/Dockerfile.playwright ]] && \
cp .ddev/web-build/disabled.Dockerfile.playwright .ddev/web-build/Dockerfile.playwright) || true
- exec-host: |
if [[ -f .ddev/web-build/Dockerfile.playwright ]]
then
rm -rf .ddev/web-build/playwright
cp -r test/playwright .ddev/web-build/
fi
post-start:
# Clean up the playwright directory copied for builds.
# We want to remove this otherwise future ddev get's will not copy in
# changes to the web-build directory.
- exec-host: rm -rf .ddev/web-build/playwright
web_environment:
- DISPLAY=:1
# Playwright's bundled Firefox reads enterprise policies from the file
# referenced by this env var (see web-entrypoint.d/mkcert-nssdb.sh for
# the writer). Keeps *.ddev.site trusted for Firefox without requiring
# `ignoreHTTPSErrors: true`.
- PLAYWRIGHT_FIREFOX_POLICIES_JSON=/tmp/playwright-firefox-policies.json
# We add the sleep so this doesn't error out when not using playwright.
web_extra_daemons:
- name: "kasmvnc"
command: "kasmvncserver -fg || sleep infinity"
directory: /var/www/html
web_extra_exposed_ports:
- name: playwright
container_port: 9323
http_port: 8323
https_port: 9324
- name: kasmvnc
container_port: 8444
http_port: 8443
https_port: 8444