mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
chore(playwright): improve playwright speed
This commit is contained in:
parent
b2b37a0f8b
commit
6656ac51e2
2 changed files with 25 additions and 38 deletions
2
.github/workflows/ci-pipeline.yml
vendored
2
.github/workflows/ci-pipeline.yml
vendored
|
@ -154,7 +154,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run Playwright Tests
|
- name: Run Playwright Tests
|
||||||
run: bunx turbo run test:playwright
|
run: bunx turbo run test:playwright
|
||||||
timeout-minutes: 10
|
timeout-minutes: 8
|
||||||
|
|
||||||
- name: Upload Playwright Report
|
- name: Upload Playwright Report
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
@ -26,46 +26,33 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
|
|
||||||
/* Configure projects for major browsers */
|
/* Configure projects for major browsers */
|
||||||
projects: [
|
projects: process.env.CI
|
||||||
{
|
? [
|
||||||
name: 'chromium',
|
// Only run Firefox in CI for speed
|
||||||
use: { ...devices['Desktop Chrome'] },
|
{
|
||||||
},
|
name: 'firefox',
|
||||||
|
use: { ...devices['Desktop Firefox'] },
|
||||||
{
|
},
|
||||||
name: 'firefox',
|
]
|
||||||
use: { ...devices['Desktop Firefox'] },
|
: [
|
||||||
},
|
// Run all browsers locally for thorough testing
|
||||||
|
{
|
||||||
{
|
name: 'chromium',
|
||||||
name: 'webkit',
|
use: { ...devices['Desktop Chrome'] },
|
||||||
use: { ...devices['Desktop Safari'] },
|
},
|
||||||
},
|
{
|
||||||
|
name: 'firefox',
|
||||||
/* Test against mobile viewports. */
|
use: { ...devices['Desktop Firefox'] },
|
||||||
// {
|
},
|
||||||
// name: 'Mobile Chrome',
|
{
|
||||||
// use: { ...devices['Pixel 5'] },
|
name: 'webkit',
|
||||||
// },
|
use: { ...devices['Desktop Safari'] },
|
||||||
// {
|
},
|
||||||
// name: 'Mobile Safari',
|
],
|
||||||
// use: { ...devices['iPhone 12'] },
|
|
||||||
// },
|
|
||||||
|
|
||||||
/* Test against branded browsers. */
|
|
||||||
// {
|
|
||||||
// name: 'Microsoft Edge',
|
|
||||||
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// name: 'Google Chrome',
|
|
||||||
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
|
|
||||||
// },
|
|
||||||
],
|
|
||||||
|
|
||||||
/* Run your local dev server before starting the tests */
|
/* Run your local dev server before starting the tests */
|
||||||
webServer: {
|
webServer: {
|
||||||
command: process.env.CI ? 'npm run start' : 'npm run dev',
|
command: process.env.CI ? 'bun run start' : 'bun run dev',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue