Skip to content

Commit ca0d023

Browse files
committed
test: add auto tests for playwright feature
1 parent 60c893d commit ca0d023

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/features-auto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- mc
4343
- memcached
4444
- nginx
45+
- playwright
4546
- ssh
4647
- su-exec
4748
- vip-cli

features/test/playwright/test.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# shellcheck source=/dev/null
4+
source dev-container-features-test-lib
5+
6+
check "Node.js exists" which node
7+
check "playwright-core exists" which playwright-core
8+
9+
check "/usr/local/etc/vscode-dev-containers/vip-codespaces/playwright/devcontainer-feature.json exists" test -f /usr/local/etc/vscode-dev-containers/vip-codespaces/playwright/devcontainer-feature.json
10+
check "/usr/local/etc/vscode-dev-containers/vip-codespaces/playwright/devcontainer-features.env exists" test -f /usr/local/etc/vscode-dev-containers/vip-codespaces/playwright/devcontainer-features.env
11+
12+
# Microsoft's base images contain zsh. We don't want to run this check for MS images because we have no control over the installed services.
13+
if test -d /etc/rc2.d && ! test -e /usr/bin/zsh; then
14+
dir="$(ls -1 /etc/rc2.d)"
15+
check "/etc/rc2.d is empty" test -z "${dir}"
16+
fi
17+
18+
reportResults

0 commit comments

Comments
 (0)