Skip to content

Commit 64218dd

Browse files
author
huanfeng
committed
Remove setup from playwright congig and delte the auth file
1 parent bca6279 commit 64218dd

File tree

4 files changed

+2
-103
lines changed

4 files changed

+2
-103
lines changed

playwright.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ export default defineConfig({
3434
/* Configure projects for major browsers */
3535
projects: [
3636
// Setup project
37-
// { name: "setup", testMatch: /.*\.setup\.ts/ },
3837
{
3938
name: "chromium",
4039
use: {
4140
...devices["Desktop Chrome"],
4241
// Use prepared auth state.
4342
storageState: "playwright/.auth/user.json"
4443
}
45-
// dependencies: ["setup"]
4644
},
4745

4846
{
@@ -52,7 +50,6 @@ export default defineConfig({
5250
// Use prepared auth state.
5351
storageState: "playwright/.auth/user.json"
5452
}
55-
// dependencies: ["setup"]
5653
},
5754

5855
{
@@ -62,7 +59,6 @@ export default defineConfig({
6259
// Use prepared auth state.
6360
storageState: "playwright/.auth/user.json"
6461
}
65-
// dependencies: ["setup"]
6662
}
6763

6864
/* Test against mobile viewports. */

playwright/.auth/admin.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

playwright/.auth/user.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

tests/e2e/adminPage.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ test.describe.serial("Admin Page", () => {
3535
await page.goto("http://localhost:3000/admin")
3636
})
3737
test.afterAll(async () => {
38-
await browser.close() // Close the browser instance after all tests
38+
// Close the browser instance after all tests
39+
await browser.close()
3940
})
4041

4142
test("should allow adding a report", async () => {

0 commit comments

Comments
 (0)