Skip to content

fix(e2e): update diary-r2-uat tests for manual-default diary filter#1790

Merged
steilerDev merged 1 commit into
betafrom
fix/1782-e2e-default-filter-state
Jun 28, 2026
Merged

fix(e2e): update diary-r2-uat tests for manual-default diary filter#1790
steilerDev merged 1 commit into
betafrom
fix/1782-e2e-default-filter-state

Conversation

@steilerDev

Copy link
Copy Markdown
Owner

Summary

Three E2E test scenarios in diary-r2-uat.spec.ts were broken by the diary default filter change in #1782.

Root cause: #1782 changed the diary page default filter from 'all' to 'manual'. Three tests were left asserting the old default behavior:

  1. Scenario 1 ("All" mode chip is aria-pressed=true by default) — asserted allChip pressed; now manualChip is pressed by default
  2. Scenario 4 (Clicking "All" after "Manual" restores all type chips) — first clicked Manual (already active = no API call, waitForResponse timeout)
  3. Scenario 10 (Selecting "Manual" mode sends only manual types to API) — clicked Manual when already in Manual mode (no API call, timeout)

Fix: Updated all three scenarios to work with the new manual default — Scenario 1 renamed and assertions flipped; Scenario 4 simplified to start from the new default; Scenario 10 adds an "All" click first to set a known state before switching to Manual.

Fixes CI failure on promotion PR #1789.

Co-Authored-By: Claude e2e-test-engineer (claude-sonnet-4-6) noreply@anthropic.com
Co-Authored-By: Claude dev-team-lead (claude-sonnet-4-6) noreply@anthropic.com

Diary default changed from 'all' to 'manual' in #1782. Three test scenarios
in diary-r2-uat.spec.ts were asserting the old default ('All' chip pressed)
or trying to click 'Manual' when it was already active (causing timeout).

Co-Authored-By: Claude e2e-test-engineer (claude-sonnet-4-6) <noreply@anthropic.com>
Co-Authored-By: Claude dev-team-lead (claude-sonnet-4-6) <noreply@anthropic.com>
@steilerDev steilerDev merged commit 2b3579b into beta Jun 28, 2026
23 of 26 checks passed
@steilerDev steilerDev deleted the fix/1782-e2e-default-filter-state branch June 28, 2026 11:06
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.12.0-beta.2 🎉

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