fix: use correct login route with hyphen (/users/log-in)
This commit is contained in:
parent
99507eeaaf
commit
7363c2ecff
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ setup('authenticate', async ({ page }) => {
|
|||
console.log(`Authenticating as ${email}...`);
|
||||
|
||||
// Navigate to login page
|
||||
await page.goto('/users/log_in');
|
||||
await page.goto('/users/log-in');
|
||||
|
||||
// Fill in email and password
|
||||
await page.getByLabel('Email').fill(email);
|
||||
|
|
@ -39,7 +39,7 @@ setup('authenticate', async ({ page }) => {
|
|||
await page.getByRole('button', { name: 'Sign in' }).click();
|
||||
|
||||
// Wait for TOTP page
|
||||
await page.waitForURL('**/users/log_in/totp');
|
||||
await page.waitForURL('**/users/log-in/totp');
|
||||
|
||||
// Generate TOTP code
|
||||
const token = generateSync({ secret: totpSecret });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue