Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deetz99 committed Jan 10, 2025
1 parent c6f8e5c commit 7427b98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion strr-host-pm-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ To use this auth state in other tests:
- Tests using BCEID login that rely on a OTP (test/prod environments) should use the saved auth user state. Generating a new OTP for each test on login can cause the tests to fail.
- A maximum of 4 workers seems to be the sweet spot for tests to pass without colliding with each other.
- Setting to 1 worker will fully disable running tests in parallel.
- Using the Playwright extension/testing tab do not execute the global setup and save the auth state. You must run `pnpm:e2e` to at least create the auth files before running tests with the extension.
- Using the Playwright extension/testing tab does not execute the global setup and save the auth state. You must run `pnpm:e2e` to at least create the auth files before running tests with the extension.
19 changes: 0 additions & 19 deletions strr-host-pm-web/tests/e2e/test-utils/auth-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,4 @@ export async function authSetup (
await page.waitForURL(baseUrl + '**')
await page.context().storageState({ path: `tests/e2e/.auth/${storagePath}.json` })
await browser.close()

// await page.goto(baseUrl + 'en-CA/auth/login')

// if (loginMethod === LoginSource.BCSC) {
// await page.getByRole('button', { name: 'Continue with BC Services Card' }).click()
// await page.getByLabel('Log in with Test with').click()
// await page.getByLabel('Email or username').fill(username)
// await page.getByLabel('Password').fill(password)
// await page.getByRole('button', { name: 'Continue' }).click()
// } else if (loginMethod === LoginSource.BCEID) {
// await page.getByRole('button', { name: 'Continue with BCeID' }).click()
// await page.locator('#user').fill(username)
// await page.getByLabel('Password').fill(password)
// await page.getByRole('button', { name: 'Continue' }).click()
// }

// await page.waitForURL(baseUrl + '**')
// await page.context().storageState({ path: `tests/e2e/.auth/${storagePath}.json` })
// await browser.close()
}

0 comments on commit 7427b98

Please sign in to comment.