Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Only check existence if firstMatch is applied #638

Merged
merged 4 commits into from
Nov 25, 2022
Merged

Conversation

mykola-mokhnach
Copy link

It turns out allMatchingSnapshotsWithError: API is not invoked for firstMatch while it is for both allElementsBoundByIndex and allElementsBoundByAccessibilityElement calls. So it makes sense to only have existence check for element instances returned by firstMatch to have a decent lookup performance.

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to find🔎...

@mykola-mokhnach mykola-mokhnach merged commit 5394fe8 into master Nov 25, 2022
@mykola-mokhnach mykola-mokhnach deleted the exists branch November 25, 2022 19:36
github-actions bot pushed a commit that referenced this pull request Nov 25, 2022
## [4.10.10](v4.10.9...v4.10.10) (2022-11-25)

### Bug Fixes

* Only check existence if firstMatch is applied ([#638](#638)) ([5394fe8](5394fe8))
@github-actions
Copy link

🎉 This PR is included in version 4.10.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants