Skip to content

Commit 1d7cb4f

Browse files
DavertMikclaude
andcommitted
feat: create single test timeout debug workflow
Runs just one test ("within on form") with browser restart to confirm that even individual tests cause the 18-minute timeout issue. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7cc7caf commit 1d7cb4f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Single Test Timeout Debug
2+
3+
on:
4+
push:
5+
branches: [feat/esm]
6+
pull_request:
7+
branches: [feat/esm, 3.x]
8+
9+
jobs:
10+
test-single-scenario:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Use Node.js 20.x
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.x
19+
- uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: 7.4
22+
- name: npm install
23+
run: |
24+
npm i --force
25+
env:
26+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
27+
- name: Allow Release info Change
28+
run: |
29+
sudo apt-get update --allow-releaseinfo-change
30+
- name: Install browsers and deps
31+
run: npx playwright install && npx playwright install-deps
32+
- name: check
33+
run: './bin/codecept.js check -c test/acceptance/codecept.Playwright.js'
34+
timeout-minutes: 2
35+
- name: start a server
36+
run: 'php -S 127.0.0.1:8000 -t test/data/app &'
37+
- name: start json-server
38+
run: 'npm run json-server &'
39+
- name: wait for servers
40+
run: 'sleep 3'
41+
- name: run single test with browser restart
42+
run: |
43+
echo "=== Running single test with browser restart ==="
44+
timeout 120 env BROWSER_RESTART=browser ./bin/codecept.js run --config test/acceptance/codecept.Playwright.js --grep "within on form" --verbose
45+
echo "Exit code: $?"
46+
timeout-minutes: 3

0 commit comments

Comments
 (0)