Skip to content

Commit b39b4a7

Browse files
committed
chore(playwright): don't use setup file for custom test fixture
1 parent 904ca8d commit b39b4a7

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

examples/with-playwright/tests/example.test.ts renamed to examples/with-playwright/example.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test'
2-
import { test } from '../playwright.setup.js'
2+
import { test } from './playwright.utils.js'
33

44
test('receives a mocked response to a REST API request', async ({ page }) => {
55
await page.goto('/', { waitUntil: 'networkidle' })

examples/with-playwright/playwright.config.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,4 @@ export default defineConfig({
1111
devtools: true,
1212
},
1313
},
14-
testDir: 'tests',
15-
projects: [
16-
// Setup file following https://playwright.dev/docs/test-global-setup-teardown
17-
{
18-
name: 'setup',
19-
testMatch: 'playwright.setup.ts',
20-
},
21-
{
22-
name: 'tests',
23-
dependencies: ['setup'],
24-
},
25-
],
2614
})

0 commit comments

Comments
 (0)