Skip to content

Commit 8b59bc3

Browse files
committed
test: remove multiple projects, use single binding
1 parent eaacf7a commit 8b59bc3

File tree

6 files changed

+2
-64
lines changed

6 files changed

+2
-64
lines changed

.github/workflows/cf_test_full.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@ name: "Playwright for Cloudflare - Full Test Suite"
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
project:
7-
description: 'Project to test'
8-
required: true
9-
default: 'BISO'
10-
type: choice
11-
options:
12-
- BISO
13-
- BRAPI Staging
14-
- BRAPI Production
155
grep:
166
description: 'Test filter grep'
177
required: false
@@ -23,7 +13,6 @@ jobs:
2313
env:
2414
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2515
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
26-
BROWSER_BINDINGS: ${{ secrets.BROWSER_BINDINGS }}
2716
TESTS_SERVER_URL: https://playwright-test-workers.rendering.cfdata.org
2817
CF_ACCESS_CLIENT_SECRET: ${{ secrets.CF_ACCESS_CLIENT_SECRET }}
2918
CF_ACCESS_CLIENT_ID: ${{ secrets.CF_ACCESS_CLIENT_ID }}
@@ -43,7 +32,7 @@ jobs:
4332
- name: Run tests
4433
run: |
4534
cd packages/playwright-cloudflare
46-
npm run test:full -- --reporter=html --project="${{ github.event.inputs.project || 'BISO' }}" ${{ github.event.inputs.grep && format('--grep="{0}"', github.event.inputs.grep) }}
35+
npm run test:full -- --reporter=html ${{ github.event.inputs.grep && format('--grep="{0}"', github.event.inputs.grep) }}
4736
4837
- name: Upload HTML report
4938
uses: actions/upload-artifact@v4

.github/workflows/cf_test_smoke.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
env:
1010
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
1111
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
12-
BROWSER_BINDINGS: ${{ secrets.BROWSER_BINDINGS }}
1312
TESTS_SERVER_URL: https://playwright-test-workers.rendering.cfdata.org
1413
CF_ACCESS_CLIENT_SECRET: ${{ secrets.CF_ACCESS_CLIENT_SECRET }}
1514
CF_ACCESS_CLIENT_ID: ${{ secrets.CF_ACCESS_CLIENT_ID }}

packages/playwright-cloudflare/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ src/bundles/
22
src/injected/
33
.vitest-reports
44
types/
5-
tests/wrangler-test.toml

packages/playwright-cloudflare/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"build": "npm run generate-injected:core && npm run ci:bundles && npm run build:bundles && npm run build:types && npx vite build",
3232
"test:generate:worker": "node ./utils/generate_worker_tests.js && cd tests && npx vite build",
3333
"test:generate:proxy": "node ./utils/generate_proxy_tests.js",
34-
"test:generate:wrangler": "node ./utils/generate_test_wrangler.js",
35-
"test:deploy": "npm run test:generate:wrangler && npm run test:generate:worker && npm run ci:tests && cd tests && npx wrangler deploy -c wrangler-test.toml",
34+
"test:deploy": "npm run test:generate:worker && npm run ci:tests && cd tests && npx wrangler deploy",
3635
"test:dev": "npm run test:generate:worker && cd tests && npx wrangler dev",
3736
"test:full": "npm run test:generate:proxy && cd tests && npx playwright test",
3837
"test:smoke": "npm run test:generate:proxy && cd tests && npx playwright test --grep \"@smoke\""

packages/playwright-cloudflare/tests/playwright.config.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,4 @@ export default defineConfig<{}, WorkerOptions>({
99
workers: process.env.TESTS_SERVER_URL ? 6 : 1,
1010
retries: process.env.TESTS_SERVER_URL ? 1 : 0,
1111
timeout: 60 * 1000,
12-
projects: [
13-
{
14-
name: 'BISO',
15-
use: {
16-
binding: 'BROWSER',
17-
}
18-
},
19-
{
20-
name: 'BRAPI Staging',
21-
use: {
22-
binding: 'BROWSER_BRAPI_STAGING',
23-
}
24-
},
25-
{
26-
name: 'BRAPI Production',
27-
use: {
28-
binding: 'BROWSER_BRAPI_PRODUCTION',
29-
}
30-
},
31-
]
3212
});

packages/playwright-cloudflare/utils/generate_test_wrangler.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)