mirror of
https://github.com/danog/code-server.git
synced 2024-11-26 20:34:56 +01:00
Remove login steps from logout test
I figure login is already tested so we can skip this and just use the cookie.
This commit is contained in:
parent
49c7cc6e8a
commit
43c6ffcb8f
@ -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']")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user