Skip to content

chore: update implementation checklist with E2E assertion and locator lessons#1379

Merged
steilerDev merged 1 commit intobetafrom
chore/checklist-e2e-lessons
Apr 28, 2026
Merged

chore: update implementation checklist with E2E assertion and locator lessons#1379
steilerDev merged 1 commit intobetafrom
chore/checklist-e2e-lessons

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

Adds two E2E testing patterns to the implementation checklist, learned from the v2.4.2 release fix loop:

  • Post-mutation assertions: Use Playwright's retrying assertions (toContainText(), toHaveText()) rather than textContent() + sync expect() after data mutations. waitForResponse() resolves at network level before React re-renders the DOM.
  • Text locators after label changes: When a production PR renames a UI label, E2E locators using the old text silently break. Prefer data-testid or broad regex patterns resilient to minor rewording.

These patterns caused shard failures in the v2.4.2 promotion PR (PR #1376 fixed them).

Test plan

  • No production code changed — CI static analysis and type-check are sufficient

… lessons

Two patterns added from v2.4.2 release fix loop:
- Post-mutation assertions must use Playwright retrying assertions (toContainText)
  not textContent() + sync expect — waitForResponse resolves before React re-renders
- Text regex locators must be updated when UI labels change; prefer data-testid
  or broad patterns resilient to minor rewording

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@steilerDev steilerDev merged commit af21a0a into beta Apr 28, 2026
12 checks passed
@steilerDev steilerDev deleted the chore/checklist-e2e-lessons branch April 28, 2026 10:40
@github-actions
Copy link
Copy Markdown
Contributor

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

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.4.3 🎉

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