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

Refactor collection conditions #2307

Merged
merged 4 commits into from May 24, 2023
Merged

Conversation

asolntsev
Copy link
Member

No description provided.

…ck(driver, elements)`

it will give us possibility to
1. select condition logic based on Android/iOS driver in mobile tests;
2. return actual values from condition to avoid fetching them again in case of test failure.
* for single element: `$.shouldHave(attribute(android("content-desc").ios("name"), "Hello world"));`
* for collections: `$$.shouldHave(attributes(android("text"), "Hello", "Mobile", "World"))`
it may happen if someone added multiple listeners to the webdriver
@sonarcloud
Copy link

sonarcloud bot commented May 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@asolntsev asolntsev merged commit 9268276 into main May 24, 2023
14 checks passed
@asolntsev asolntsev deleted the refactoring/collection-conditions branch May 24, 2023 18:18
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.

None yet

1 participant