Skip to content

fix(e2e): update ScheduleSubNav aria-label locator#1190

Merged
steilerDev merged 4 commits into
betafrom
fix/1188-e2e-fixes
Mar 25, 2026
Merged

fix(e2e): update ScheduleSubNav aria-label locator#1190
steilerDev merged 4 commits into
betafrom
fix/1188-e2e-fixes

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

  • Updated E2E test timeline-responsive.spec.ts to use the correct aria-label 'Schedule section navigation' instead of 'Gantt' for the ScheduleSubNav navigation element
  • The ScheduleSubNav component uses t('schedule.navigation.ariaLabel') which resolves to 'Schedule section navigation' in English — the E2E test was using the old label

Test plan

  • CI Quality Gates pass
  • E2E timeline-responsive.spec.ts:472 passes on all viewports (desktop, tablet, mobile)

🤖 Generated with Claude Code

Frontend Developer and others added 4 commits March 25, 2026 12:38
The E2E test was looking for navigation with name 'Gantt' but the
ScheduleSubNav component uses the i18n key 'schedule.navigation.ariaLabel'
which resolves to 'Schedule section navigation' in English.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The test navigated to the same URL that setLanguage already redirected
to (/project/overview), so the second goto + reload was unreliable —
the browser could skip the full page load, leaving i18next initialized
with English. Replace with a single goto and an explicit wait for the
German page heading to confirm the locale switch took effect, matching
the pattern used by the other working German locale tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… mobile

- Increase waitForResponse and waitForURL timeouts from 10s to 15s in
  WorkItemsPage.search() and VendorsPage.search()/clearSearch(). On
  mobile viewports, fill() can take up to 10s (actionTimeout) leaving
  no headroom for debounce + API round-trip within the old 10s limit.
- Add waitForVendorsLoaded() after search/clearSearch in VendorsPage
  to ensure React has committed filtered results before callers read
  the DOM via getVendorNames(), preventing .all() race conditions on
  mobile where the API response arrives before the re-render completes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ize test

- Remove goto+reload pattern from i18n-categories German locale tests
  (trades, budget categories, household item categories). Instead use a
  single goto with waitUntil:'commit' and wait for the expected German
  text as the locale-readiness indicator. The reload was unreliable
  because navigating to the same URL the SPA already loaded could skip
  the full page load.
- Add defensive hiddenCards preference reset before navigation in the
  dashboard "Customize button appears" test to prevent state pollution
  from parallel workers sharing the same user preferences.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@steilerDev steilerDev merged commit 4deced3 into beta Mar 25, 2026
27 of 28 checks passed
@steilerDev steilerDev deleted the fix/1188-e2e-fixes branch March 25, 2026 12:34
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.2.0-beta.32 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant