Skip to content

Commit 89c5388

Browse files
committed
use chromium
1 parent 387bd67 commit 89c5388

File tree

2 files changed

+2
-57
lines changed

2 files changed

+2
-57
lines changed

.github/workflows/e2e.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
fail-fast: false
10-
matrix:
11-
php-versions: ['8.3']
1210
env:
1311
WP_BASE_URL: 'http://localhost:8888'
1412
WP_USERNAME: 'admin'
@@ -29,7 +27,7 @@ jobs:
2927
- name: Setup composer
3028
uses: php-actions/composer@v6
3129
with:
32-
php_version: ${{ matrix.php-versions }}
30+
php_version: '8.3'
3331
dev: no
3432

3533
- name: Install packages
@@ -39,7 +37,7 @@ jobs:
3937
run: yarn build
4038

4139
- name: Playwright install
42-
run: yarn playwright install
40+
run: yarn playwright install-deps chromium
4341

4442
- name: Start wp-env
4543
run: yarn wp-env

playwright.config.ts

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,79 +3,26 @@ import dotenv from 'dotenv';
33

44
dotenv.config();
55

6-
/**
7-
* Read environment variables from file.
8-
* https://github.com/motdotla/dotenv
9-
*/
10-
// require('dotenv').config();
11-
126
/**
137
* See https://playwright.dev/docs/test-configuration.
148
*/
159
export default defineConfig({
1610
testDir: 'tests/e2e',
1711
globalSetup: 'tests/e2e/global-setup.ts',
18-
/* Run tests in files in parallel */
1912
fullyParallel: true,
20-
/* Fail the build on CI if you accidentally left test.only in the source code. */
2113
forbidOnly: !!process.env.CI,
22-
/* Retry on CI only */
2314
retries: process.env.CI ? 2 : 0,
24-
/* Opt out of parallel tests on CI. */
2515
workers: process.env.CI ? 1 : undefined,
26-
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
2716
reporter: 'html',
28-
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2917
use: {
30-
/* Base URL to use in actions like `await page.goto('/')`. */
3118
baseURL: process.env.WP_BASE_URL,
32-
33-
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3419
trace: 'on-first-retry',
3520
},
3621

37-
/* Configure projects for major browsers */
3822
projects: [
3923
{
4024
name: 'chromium',
4125
use: { ...devices['Desktop Chrome'] },
4226
},
43-
44-
// {
45-
// name: 'firefox',
46-
// use: { ...devices['Desktop Firefox'] },
47-
// },
48-
49-
// {
50-
// name: 'webkit',
51-
// use: { ...devices['Desktop Safari'] },
52-
// },
53-
54-
/* Test against mobile viewports. */
55-
// {
56-
// name: 'Mobile Chrome',
57-
// use: { ...devices['Pixel 5'] },
58-
// },
59-
// {
60-
// name: 'Mobile Safari',
61-
// use: { ...devices['iPhone 12'] },
62-
// },
63-
64-
/* Test against branded browsers. */
65-
// {
66-
// name: 'Microsoft Edge',
67-
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
68-
// },
69-
// {
70-
// name: 'Google Chrome',
71-
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
72-
// },
7327
],
74-
75-
/* Run your local dev server before starting the tests */
76-
// webServer: {
77-
// command: 'npm run start',
78-
// url: 'http://127.0.0.1:3000',
79-
// reuseExistingServer: !process.env.CI,
80-
// },
8128
});

0 commit comments

Comments
 (0)