Skip to content

Commit 43c6ffc

Browse files
committed
Remove login steps from logout test
I figure login is already tested so we can skip this and just use the cookie.
1 parent 49c7cc6 commit 43c6ffc

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

test/e2e/logout.test.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
import { PASSWORD } from "../utils/constants"
21
import { describe, test, expect } from "./baseFixture"
32

4-
describe("logout", false, () => {
5-
test("should be able login and logout", async ({ codeServerPage }) => {
6-
// Type in password
7-
await codeServerPage.page.fill(".password", PASSWORD)
8-
// Click the submit button and login
9-
await codeServerPage.page.click(".submit")
10-
await codeServerPage.page.waitForLoadState("networkidle")
11-
// We do this because occassionally code-server doesn't load on Firefox
12-
// but loads if you reload once or twice
13-
await codeServerPage.reloadUntilEditorIsReady()
14-
// Make sure the editor actually loaded
15-
expect(await codeServerPage.isEditorVisible()).toBe(true)
16-
3+
describe("logout", true, () => {
4+
test("should be able logout", async ({ codeServerPage }) => {
175
// Click the Application menu
186
await codeServerPage.page.click("[aria-label='Application Menu']")
197

0 commit comments

Comments
 (0)