Archived
1
0

refactor: e2e tests based on jest-playwright

This commit is contained in:
Joe Previte
2021-04-01 10:57:44 -07:00
parent 1782f2a239
commit 4b703cbd4d
4 changed files with 18 additions and 66 deletions

View File

@ -21,6 +21,10 @@ module.exports = async () => {
await page.fill(".password", PASSWORD)
// Click the submit button and login
await page.click(".submit")
// After logging in, we store a cookie in localStorage
// we need to wait a bit to make sure that happens
// before we grab the storage and save it
await page.waitForTimeout(1000)
// Save storage state and store as an env variable
// More info: https://playwright.dev/docs/auth?_highlight=authe#reuse-authentication-state