E2E auth test fails - error message mismatch #21

Closed
opened 2026-02-19 01:26:07 +00:00 by santhoshj · 0 comments
Owner

Problem

E2E test "invalid credentials rejected" fails in both Chromium and Firefox.

Details

  • Test file: frontend/tests/e2e/auth.spec.js:34
  • Expected: Text "Invalid credentials" to be visible
  • Actual: Error message not found

Root Cause

Test expects "Invalid credentials" but auth store shows:
INVALID_CREDENTIALS: 'Invalid email or password. Please try again.'

Proposed Solution

Update test locator from:
text=Invalid credentials
to:
text=Invalid email or password

Test Output

2 failed
[chromium] tests\e2e\auth.spec.js:34:5
[firefox] tests\e2e\auth.spec.js:34:5

## Problem E2E test \"invalid credentials rejected\" fails in both Chromium and Firefox. ## Details - Test file: frontend/tests/e2e/auth.spec.js:34 - Expected: Text \"Invalid credentials\" to be visible - Actual: Error message not found ## Root Cause Test expects \"Invalid credentials\" but auth store shows: INVALID_CREDENTIALS: 'Invalid email or password. Please try again.' ## Proposed Solution Update test locator from: text=Invalid credentials to: text=Invalid email or password ## Test Output 2 failed [chromium] tests\e2e\auth.spec.js:34:5 [firefox] tests\e2e\auth.spec.js:34:5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/headroom#21