Skip to content

test(e2e): fix dashboard mobile POM selector and preferences intercept#739

Open
steilerDev wants to merge 1 commit intobetafrom
fix/738-e2e-dashboard-pom-mobile
Open

test(e2e): fix dashboard mobile POM selector and preferences intercept#739
steilerDev wants to merge 1 commit intobetafrom
fix/738-e2e-dashboard-pom-mobile

Conversation

@steilerDev
Copy link
Owner

Summary

  • Adds data-testid="dashboard-mobile-sections" to mobile sections container
  • Fixes DashboardPage POM to use getByTestId instead of mismatched aria-label ("Dashboard overview (mobile)" doesn't exist — actual label is "Dashboard overview")
  • Removes preferences GET intercept that caused "dismissed card stays hidden after reload" test to fail (intercepted GET returned empty hidden cards, overriding real server-side state after reload)

Fixes shards 4, 10, 15 failing on promotion PR #738.

Test plan

  • E2E shard 4 (desktop dashboard tests) passes
  • E2E shard 10 (tablet dashboard tests) passes
  • E2E shard 15 (mobile dashboard tests) passes

Co-Authored-By: Claude Opus 4.6 [email protected]

- Add data-testid="dashboard-mobile-sections" to mobile sections container
- Update DashboardPage POM to use getByTestId instead of mismatched aria-label
  (component uses "Dashboard overview" not "Dashboard overview (mobile)")
- Remove preferences GET intercept from interceptDashboardApis that was
  preventing the "dismissed card stays hidden after reload" test from reading
  real server-side state. The global beforeEach reset is sufficient for
  test isolation.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants