Skip to content

Commit c2f97e5

Browse files
committed
Force tests folders
1 parent 515798f commit c2f97e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { devices } from '@playwright/test';
2424
*/
2525
const config: PlaywrightTestConfig = {
2626
testDir: './examples',
27+
testMatch: /.*\/tests\/[a-z0-9\-\.]+\.test\.(js|mjs|ts)/,
2728

2829
webServer: {
2930
command: 'npm run start',
@@ -39,7 +40,7 @@ const config: PlaywrightTestConfig = {
3940
* Maximum time expect() should wait for the condition to be met.
4041
* For example in `await expect(locator).toHaveText();`
4142
*/
42-
timeout: 5000
43+
timeout: 2500
4344
},
4445
/* Run tests in files in parallel */
4546
fullyParallel: true,

0 commit comments

Comments
 (0)