mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 04:45:52 +01:00
13 lines
354 B
TypeScript
13 lines
354 B
TypeScript
|
import { test as base } from "@playwright/test"
|
||
|
import { CodeServer } from "./models/CodeServer"
|
||
|
|
||
|
export const test = base.extend<{ codeServerPage: CodeServer }>({
|
||
|
codeServerPage: async ({ page }, use) => {
|
||
|
const codeServer = new CodeServer(page)
|
||
|
await codeServer.navigate()
|
||
|
await use(codeServer)
|
||
|
},
|
||
|
})
|
||
|
|
||
|
export const expect = test.expect
|