Archived
1
0

chore(deps): add resolution for newest playwright

This commit is contained in:
Joe Previte
2021-04-13 17:31:24 -07:00
parent 7ea6d22b3e
commit 6c3bb101cd
3 changed files with 17 additions and 28 deletions

View File

@ -2,12 +2,16 @@ import { test, expect } from "@playwright/test"
import { CODE_SERVER_ADDRESS, PASSWORD } from "../utils/constants"
test.describe("login", () => {
test.beforeEach(async ({ page }) => {
// TODO@jsjoeio reset the browser
await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "networkidle" })
})
// Reset the browser so no cookies are persisted
// by emptying the storageState
const options = {
contextOptions: {
storageState: {},
},
}
test("should be able to login", async ({ page }) => {
test("should be able to login", options, async ({ page }) => {
await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "networkidle" })
// Type in password
await page.fill(".password", PASSWORD)
// Click the submit button and login