Skip to content

Commit

Permalink
Remove global setup
Browse files Browse the repository at this point in the history
  • Loading branch information
RandilaP committed Aug 3, 2023
1 parent b1e613d commit 9d25fb3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 79 deletions.
32 changes: 0 additions & 32 deletions e2e/core/global-setup.ts

This file was deleted.

15 changes: 2 additions & 13 deletions e2e/core/test.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
import { APIRequestContext, Page, test as base } from "@playwright/test";
import { api } from "../fixtures";
import { test as base } from "@playwright/test";

// This file sets up our custom test harness using the custom fixtures.
// See https://playwright.dev/docs/test-fixtures#creating-a-fixture for details.
// If a spec intends to use one of the custom fixtures, the special `test` function
// exported from this file must be used instead of the default `test` function
// provided by playwright.

export interface CustomTestFixtures {
loginAsAdmin: Page;
}

export interface CustomWorkerFixtures {
api: APIRequestContext;
}

export const test = base.extend<CustomTestFixtures, CustomWorkerFixtures>({
api: [api, { scope: "worker" }],
});
export const test = base.extend({});
33 changes: 0 additions & 33 deletions e2e/fixtures/api.ts

This file was deleted.

1 change: 0 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const config: PlaywrightTestConfig = {
reporter: process.env.CI
? [["junit", { outputFile: "results.xml" }], ["html"]]
: [["html"]],
globalSetup: require.resolve("./e2e/core/global-setup"),
use: {
baseURL: `${process.env.E2E_BASE_URL}/spa/`,
storageState: "e2e/storageState.json",
Expand Down

0 comments on commit 9d25fb3

Please sign in to comment.