Skip to content

Commit 11e672a

Browse files
authored
Merge pull request #239 from GravityKit/tests/happy-path
Add E2E happy-path Playwright suite
2 parents cfa3155 + dfd260a commit 11e672a

18 files changed

Lines changed: 1850 additions & 2 deletions

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ jobs:
6262
while [ $attempt -lt $max_attempts ]; do
6363
npm run tests:e2e:setup && break
6464
attempt=$(( attempt + 1 ))
65-
rm -rf /home/circleci/.wp-env
65+
# Apache inside the wp-env container creates the bind-mounted
66+
# mu-plugin files (e2e-fixtures.php, e2e-mail-capture.php) as
67+
# uid 0, so a plain `rm -rf` from the circleci user fails on
68+
# them and every retry hits the same "permission denied"
69+
# state. Stop the containers first, then clean up with sudo
70+
# which is available on CircleCI Linux machine runners.
71+
(cd tests/E2E/setup && npx wp-env stop 2>/dev/null) || true
72+
sudo rm -rf /home/circleci/.wp-env
6673
echo "Retrying WP-ENV setup in $sleep_time seconds… (attempt $attempt/$max_attempts)"
6774
sleep $sleep_time
6875
done

.claude/gravityexport-lite-happy-paths.md

Lines changed: 216 additions & 0 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ tests/E2E/setup/.e2e-ports.json
2424
tests/E2E/setup/.state.json
2525
tests/E2E/results/
2626
tests/E2E/report/
27+
tests/E2E/setup/mail-capture/
28+
.playwright-mcp/
29+
playwright-transform-*
30+
playwright_chromiumdev_profile-*

0 commit comments

Comments
 (0)