Skip to content

Commit 6858da5

Browse files
committed
Remove Playwright and Puppeteer dependencies from extractor package and update Playwright configuration for improved test management
1 parent 4249f02 commit 6858da5

File tree

3 files changed

+23
-115
lines changed

3 files changed

+23
-115
lines changed

packages/extractor.vite/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
"@master/css-extractor": "workspace:^"
6161
},
6262
"devDependencies": {
63-
"@playwright/test": "^1.49.1",
64-
"puppeteer-core": "^23.10.3",
6563
"shared": "workspace:^"
6664
}
6765
}

packages/vue/e2e/playwright-ct.config.ts

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,34 @@
11
import { defineConfig, devices } from '@playwright/experimental-ct-vue'
22

3+
/**
4+
* See https://playwright.dev/docs/test-configuration.
5+
*/
36
export default defineConfig({
47
testDir: './',
5-
timeout: 15000,
8+
/* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */
9+
snapshotDir: './__snapshots__',
10+
/* Maximum time one test can run for. */
11+
timeout: 10 * 1000,
12+
/* Run tests in files in parallel */
613
fullyParallel: true,
14+
/* Fail the build on CI if you accidentally left test.only in the source code. */
715
forbidOnly: !!process.env.CI,
16+
/* Retry on CI only */
17+
retries: process.env.CI ? 2 : 0,
18+
/* Opt out of parallel tests on CI. */
819
workers: process.env.CI ? 1 : undefined,
9-
reporter: 'list',
20+
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
21+
reporter: 'html',
22+
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
1023
use: {
24+
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
25+
trace: 'on-first-retry',
26+
27+
/* Port to use for Playwright component endpoint. */
1128
ctPort: 3100,
1229
},
30+
31+
/* Configure projects for major browsers */
1332
projects: [
1433
{
1534
name: 'chromium',
@@ -24,4 +43,4 @@ export default defineConfig({
2443
use: { ...devices['Desktop Safari'] },
2544
},
2645
],
27-
})
46+
})

pnpm-lock.yaml

+1-110
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)