UNPKG

@ugandaemr/esm-patient-appointments-app

Version:
25 lines (20 loc) 718 B
import { type APIRequestContext, type Page, test as base, } from "@playwright/test"; import { api } from "../fixtures"; // 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" }], });