Skip to content

Commit e614c38

Browse files
committed
added visual testing project to playwright
1 parent d05f495 commit e614c38

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

packages/kit-headless/playwright.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ export default defineConfig({
3636
},
3737
projects: [
3838
{
39-
name: 'chromium',
39+
name: 'logic',
4040
use: { ...devices['Desktop Chrome'] },
41+
grepInvert: /@Visual.*/,
42+
},
43+
44+
{
45+
name: 'visual',
46+
use: { ...devices['Desktop Chrome'] },
47+
grep: /@Visual.*/,
4148
},
4249

4350
// {

packages/kit-headless/project.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,16 @@
8484
"executor": "@nx/playwright:playwright",
8585
"outputs": ["{workspaceRoot}/dist/.playwright/packages/kit-headless"],
8686
"options": {
87-
"config": "packages/kit-headless/playwright.config.ts"
87+
"config": "packages/kit-headless/playwright.config.ts",
88+
"project": ["logic"]
89+
}
90+
},
91+
"visual-test": {
92+
"executor": "@nx/playwright:playwright",
93+
"outputs": ["{workspaceRoot}/dist/.playwright/packages/kit-headless"],
94+
"options": {
95+
"config": "packages/kit-headless/playwright.config.ts",
96+
"project": ["visual"]
8897
}
8998
}
9099
},

0 commit comments

Comments
 (0)