Skip to content

Improve visibility pairing validation #108

Open
tanyafortuna wants to merge 3 commits into
mainfrom
feat/pw-visibility-pairing-improvement
Open

Improve visibility pairing validation #108
tanyafortuna wants to merge 3 commits into
mainfrom
feat/pw-visibility-pairing-improvement

Conversation

@tanyafortuna
Copy link
Copy Markdown
Collaborator

@tanyafortuna tanyafortuna commented May 20, 2026

This PR updates the visibility assertion validation to allow multiple elements to change visibility from a single action.

Previously, the validator required visibility checks to be exactly 2 steps apart (check -> action -> check), which could be quite limiting.

Now it groups assertions by target and counts only actions between pairs, ignoring other assertions. This enables test scenarios where multiple elements appear or disappear from one user action, like clicking a toggle that shows/hides several UI components at once.

@tanyafortuna tanyafortuna self-assigned this May 20, 2026
@tanyafortuna
Copy link
Copy Markdown
Collaborator Author

@brandonjpierce @belsrc another one for you. This PR improves visibility validation (making sure something is visible -> action gets taken -> it's invisible, or vice versa) by counting actual actions between visibility checks instead of requiring the assertions to be exactly two lines apart.

@tanyafortuna tanyafortuna changed the title Improv visibility pairing validation Improve visibility pairing validation May 21, 2026
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.

1 participant