Skip to content

Commit

Permalink
Remove Playwright and Puppeteer dependencies from extractor package a…
Browse files Browse the repository at this point in the history
…nd update Playwright configuration for improved test management
  • Loading branch information
1aron committed Dec 16, 2024
1 parent 4249f02 commit 6858da5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 115 deletions.
2 changes: 0 additions & 2 deletions packages/extractor.vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
"@master/css-extractor": "workspace:^"
},
"devDependencies": {
"@playwright/test": "^1.49.1",
"puppeteer-core": "^23.10.3",
"shared": "workspace:^"
}
}
25 changes: 22 additions & 3 deletions packages/vue/e2e/playwright-ct.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
import { defineConfig, devices } from '@playwright/experimental-ct-vue'

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './',
timeout: 15000,
/* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */
snapshotDir: './__snapshots__',
/* Maximum time one test can run for. */
timeout: 10 * 1000,
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
reporter: 'list',
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',

/* Port to use for Playwright component endpoint. */
ctPort: 3100,
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
Expand All @@ -24,4 +43,4 @@ export default defineConfig({
use: { ...devices['Desktop Safari'] },
},
],
})
})
111 changes: 1 addition & 110 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6858da5

Please sign in to comment.