Skip to content

Commit ebbabc6

Browse files
committed
refactor(testing): combine loginPage with login
1 parent 58e17c5 commit ebbabc6

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

test/e2e/login.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ test.describe("login", () => {
1010
},
1111
}
1212

13+
test("should see the login page", options, async ({ page }) => {
14+
await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "networkidle" })
15+
// It should send us to the login page
16+
expect(await page.title()).toBe("code-server login")
17+
})
18+
1319
test("should be able to login", options, async ({ page }) => {
1420
await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "networkidle" })
1521
// Type in password

test/e2e/loginPage.test.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)