|
7 | 7 | branches: [feat/esm, 3.x] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - test-single-scenario: |
| 10 | + test-simple-scenario: |
11 | 11 | runs-on: ubuntu-latest |
12 | 12 |
|
13 | 13 | steps: |
@@ -38,15 +38,53 @@ jobs: |
38 | 38 | run: 'npm run json-server &' |
39 | 39 | - name: wait for servers |
40 | 40 | run: 'sleep 3' |
41 | | - - name: run single test with browser restart |
| 41 | + - name: run simple test with browser restart |
42 | 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 |
| 43 | + echo "=== Running simple test with browser restart ===" |
| 44 | + timeout 60 env BROWSER_RESTART=browser ./bin/codecept.js run --config test/acceptance/codecept.Playwright.js --grep "simple page test" --verbose |
45 | 45 | echo "Exit code: $?" |
46 | | - timeout-minutes: 3 |
| 46 | + timeout-minutes: 2 |
| 47 | + |
| 48 | + test-complex-scenario: |
| 49 | + runs-on: ubuntu-latest |
| 50 | + |
| 51 | + steps: |
| 52 | + - uses: actions/checkout@v4 |
| 53 | + - name: Use Node.js 20.x |
| 54 | + uses: actions/setup-node@v4 |
| 55 | + with: |
| 56 | + node-version: 20.x |
| 57 | + - uses: shivammathur/setup-php@v2 |
| 58 | + with: |
| 59 | + php-version: 7.4 |
| 60 | + - name: npm install |
| 61 | + run: | |
| 62 | + npm i --force |
| 63 | + env: |
| 64 | + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true |
| 65 | + - name: Allow Release info Change |
| 66 | + run: | |
| 67 | + sudo apt-get update --allow-releaseinfo-change |
| 68 | + - name: Install browsers and deps |
| 69 | + run: npx playwright install && npx playwright install-deps |
| 70 | + - name: check |
| 71 | + run: './bin/codecept.js check -c test/acceptance/codecept.Playwright.js' |
| 72 | + timeout-minutes: 2 |
| 73 | + - name: start a server |
| 74 | + run: 'php -S 127.0.0.1:8000 -t test/data/app &' |
| 75 | + - name: start json-server |
| 76 | + run: 'npm run json-server &' |
| 77 | + - name: wait for servers |
| 78 | + run: 'sleep 3' |
47 | 79 | - name: run simple test with browser restart |
48 | 80 | run: | |
49 | 81 | echo "=== Running simple test with browser restart ===" |
50 | 82 | timeout 60 env BROWSER_RESTART=browser ./bin/codecept.js run --config test/acceptance/codecept.Playwright.js --grep "simple page test" --verbose |
51 | 83 | echo "Exit code: $?" |
52 | 84 | timeout-minutes: 2 |
| 85 | + - name: run complex test with browser restart |
| 86 | + run: | |
| 87 | + echo "=== Running complex test with browser restart ===" |
| 88 | + timeout 120 env BROWSER_RESTART=browser ./bin/codecept.js run --config test/acceptance/codecept.Playwright.js --grep "within on form" --verbose |
| 89 | + echo "Exit code: $?" |
| 90 | + timeout-minutes: 3 |
0 commit comments