Skip to content

Commit 7fde3a5

Browse files
committed
test: avoid Playwright error 'missing dependencies' on Github Actions
1 parent b821df8 commit 7fde3a5

1 file changed

Lines changed: 22 additions & 16 deletions

File tree

apps/solidjs-boilerplate/playwright.config.ts

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { PlaywrightTestConfig } from '@playwright/test';
22
// eslint-disable-next-line import/no-extraneous-dependencies
3-
import { devices } from '@playwright/test';
3+
// import { devices } from '@playwright/test';
44

55
/**
66
* Read environment variables from file.
@@ -46,25 +46,31 @@ const config: PlaywrightTestConfig = {
4646
/* Configure projects for major browsers */
4747
projects: [
4848
{
49-
name: 'chromium',
49+
name: 'Google Chrome',
5050
use: {
51-
...devices['Desktop Chrome'],
52-
},
51+
channel: 'chrome',
52+
}, // @ https://github.com/microsoft/playwright/issues/17975#issuecomment-1274884660
5353
},
54+
// {
55+
// name: 'chromium',
56+
// use: {
57+
// ...devices['Desktop Chrome'],
58+
// },
59+
// },
5460

55-
{
56-
name: 'firefox',
57-
use: {
58-
...devices['Desktop Firefox'],
59-
},
60-
},
61+
// {
62+
// name: 'firefox',
63+
// use: {
64+
// ...devices['Desktop Firefox'],
65+
// },
66+
// },
6167

62-
{
63-
name: 'webkit',
64-
use: {
65-
...devices['Desktop Safari'],
66-
},
67-
},
68+
// {
69+
// name: 'webkit',
70+
// use: {
71+
// ...devices['Desktop Safari'],
72+
// },
73+
// },
6874

6975
/* Test against mobile viewports. */
7076
// {

0 commit comments

Comments
 (0)