Skip to content

Commit ea322a1

Browse files
author
Dohyung Ahn
committed
env: change playwright test scripts
1 parent beec9d0 commit ea322a1

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"test": "jest",
6666
"test:watch": "jest --watch",
6767
"test:playwright": "playwright test",
68-
"test:playwright:inspect": "playwright test --debug",
68+
"test:playwright:local": "playwright test --project=Chromium",
69+
"test:playwright:inspect": "playwright test --project=Chromium --debug",
6970
"prepare": "ts-patch install -s && husky install && ts-patch install -s && npm run build:date",
7071
"update:readme": "node scripts/replaceLinkInReadme.js"
7172
},

playwright.config.ts

+9-14
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,15 @@ const config: PlaywrightTestConfig = {
3333
name: 'Chromium',
3434
use: { ...devices['Desktop Chrome'] },
3535
},
36-
].concat(
37-
isCI
38-
? [
39-
{
40-
name: 'Safari',
41-
use: { ...devices['Desktop Safari'] },
42-
},
43-
{
44-
name: 'Firefox',
45-
use: { ...devices['Desktop Firefox'] },
46-
},
47-
]
48-
: []
49-
),
36+
{
37+
name: 'Safari',
38+
use: { ...devices['Desktop Safari'] },
39+
},
40+
{
41+
name: 'Firefox',
42+
use: { ...devices['Desktop Firefox'] },
43+
},
44+
],
5045
};
5146

5247
export default config;

0 commit comments

Comments
 (0)