code-server/test/e2e/loginPage.test.ts

15 lines
467 B
TypeScript
Raw Normal View History

import { test, expect } from "@playwright/test"
2021-03-30 23:07:51 +00:00
import { CODE_SERVER_ADDRESS } from "../utils/constants"
test.describe("login page", () => {
test.beforeEach(async ({ page }) => {
// TODO@jsjoeio reset context somehow
await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "networkidle" })
2021-03-30 23:07:51 +00:00
})
test("should see the login page", async ({ page }) => {
2021-03-30 23:07:51 +00:00
// It should send us to the login page
expect(await page.title()).toBe("code-server login")
})
})