refactor: rename e2e test to loginPage

This commit is contained in:
Joe Previte
2021-03-30 16:07:51 -07:00
parent bd55cb94be
commit 1782f2a239
4 changed files with 26 additions and 29 deletions

View File

@@ -0,0 +1,15 @@
/// <reference types="jest-playwright-preset" />
import { CODE_SERVER_ADDRESS } from "../utils/constants"
describe("login page", () => {
beforeEach(async () => {
await jestPlaywright.resetContext()
await page.goto(CODE_SERVER_ADDRESS)
})
it("should see the login page", async () => {
// It should send us to the login page
expect(await page.title()).toBe("code-server login")
})
})