File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 11// @ts -check
2- import { test , expect } from "@playwright/test" ;
3- import { getConfig } from "../config.js" ;
2+ import { test , expect } from "./fixtures.js" ;
43
54// Test that all activities show
6- test ( "basic" , async ( { page } ) => {
7- const config = getConfig ( ) ;
5+ test ( "frontpage" , async ( { page, config } ) => {
86 await page . goto ( config . baseURL ) ;
97 await expect ( page . locator ( "title" ) ) . toContainText ( / Q O w n N o t e s / ) ;
108} ) ;
Original file line number Diff line number Diff line change 1+ // @ts -check
2+ import { test as base } from "@playwright/test" ;
3+ import { getConfig } from "../config.js" ;
4+
5+ export const test = base . extend ( {
6+ config : async ( { } , use ) => {
7+ const config = getConfig ( ) ;
8+ await use ( config ) ;
9+ } ,
10+ } ) ;
11+
12+ export { expect } from "@playwright/test" ;
You can’t perform that action at this time.
0 commit comments