fix: use correct login route with hyphen (/users/log-in)

This commit is contained in:
Graham McIntire 2026-03-06 15:55:29 -06:00
parent 99507eeaaf
commit 7363c2ecff
No known key found for this signature in database

View file

@ -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 });