Archived
1
0

Centralize credential handling

My thinking is that this may reduce the cognitive overhead for
developers writing new test suites.

This also allows us to perform different setup steps (like ensuring the
editor is visible when authenticated).
This commit is contained in:
Asher
2021-06-23 17:41:36 -05:00
parent da4de439e0
commit f2fa7701a9
11 changed files with 54 additions and 66 deletions

View File

@ -1,13 +1,7 @@
import { PASSWORD } from "../utils/constants"
import { describe, test, expect } from "./baseFixture"
describe("logout", () => {
// Reset the browser so no cookies are persisted
// by emptying the storageState
test.use({
storageState: {},
})
describe("logout", false, () => {
test("should be able login and logout", async ({ codeServerPage }) => {
// Type in password
await codeServerPage.page.fill(".password", PASSWORD)