From 43c6ffcb8f18719bcb5b36c831a918387acf84db Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 25 Jun 2021 11:20:44 -0500 Subject: [PATCH] Remove login steps from logout test I figure login is already tested so we can skip this and just use the cookie. --- test/e2e/logout.test.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/test/e2e/logout.test.ts b/test/e2e/logout.test.ts index ac932fa4..61a0615a 100644 --- a/test/e2e/logout.test.ts +++ b/test/e2e/logout.test.ts @@ -1,19 +1,7 @@ -import { PASSWORD } from "../utils/constants" import { describe, test, expect } from "./baseFixture" -describe("logout", false, () => { - test("should be able login and logout", async ({ codeServerPage }) => { - // Type in password - await codeServerPage.page.fill(".password", PASSWORD) - // Click the submit button and login - await codeServerPage.page.click(".submit") - await codeServerPage.page.waitForLoadState("networkidle") - // We do this because occassionally code-server doesn't load on Firefox - // but loads if you reload once or twice - await codeServerPage.reloadUntilEditorIsReady() - // Make sure the editor actually loaded - expect(await codeServerPage.isEditorVisible()).toBe(true) - +describe("logout", true, () => { + test("should be able logout", async ({ codeServerPage }) => { // Click the Application menu await codeServerPage.page.click("[aria-label='Application Menu']")