refactor: rename e2e test to loginPage
This commit is contained in:
15
test/e2e/loginPage.test.ts
Normal file
15
test/e2e/loginPage.test.ts
Normal 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")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user