2021-03-30 23:07:51 +00:00
|
|
|
/// <reference types="jest-playwright-preset" />
|
|
|
|
|
|
|
|
import { CODE_SERVER_ADDRESS } from "../utils/constants"
|
|
|
|
|
|
|
|
describe("login page", () => {
|
|
|
|
beforeEach(async () => {
|
2021-04-02 23:49:01 +00:00
|
|
|
await jestPlaywright.resetContext({
|
|
|
|
logger: {
|
|
|
|
isEnabled: (name, severity) => name === "browser",
|
|
|
|
log: (name, severity, message, args) => console.log(`${name} ${message}`),
|
|
|
|
},
|
|
|
|
})
|
2021-04-01 21:52:46 +00:00
|
|
|
await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "networkidle" })
|
2021-03-30 23:07:51 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
it("should see the login page", async () => {
|
|
|
|
// It should send us to the login page
|
|
|
|
expect(await page.title()).toBe("code-server login")
|
|
|
|
})
|
|
|
|
})
|