8000 [extension-selenium] Add step to wait an element with text matching r… by uarlouski · Pull Request #4349 · vividus-framework/vividus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[extension-selenium] Add step to wait an element with text matching r… #4349

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

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

uarlouski
Copy link
Member

…egex

@uarlouski uarlouski requested a review from a team as a code owner September 22, 2023 08:57
@@ -415,6 +415,23 @@ Then element located by `$locator` exists for `$duration` duration
Then element located by `id(banner)` exists for `PT5S` duration
----

=== Wait element has text matching regex
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
=== Wait element has text matching regex
=== Wait until element has text matching regular expression

When I wait until element located by `$locator` has text matching `$regex`
----

* `$locator` - The <<_locator>> of the element whose text to check.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* `$locator` - The <<_locator>> of the element whose text to check.
* `$locator` - The <<_locator>> of the element which text to check.

Comment on lines 10 to 11
When I change context to element located by `id(current-horizontal):a`
Then the text matches '\d+'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
When I change context to element located by `id(current-horizontal):a`
Then the text matches '\d+'

Given I am on page with URL `${vividus-test-site-url}/scrollableElements.html`
When I change context to element located by `id(scrollable)`
When I scroll context to RIGHT edge
When I reset context
When I wait until element located by `id(current-horizontal):a` has text matching `\d+`
When I change context to element located by `id(current-horizontal):a`
Then the text matches '\d+'

Copy link
Collaborator

Choose a reason for hiding this comment

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

also it makes sense to update the test scrolling to bottom

@github-actions
Copy link
github-actions bot commented Sep 22, 2023

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@codecov
Copy link
codecov bot commented Sep 22, 2023

Codecov Report

Merging #4349 (7043df0) into master (9aef002) will increase coverage by 0.02%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #4349      +/-   ##
============================================
+ Coverage     97.27%   97.29%   +0.02%     
- Complexity     6330     6341      +11     
============================================
  Files           886      886              
  Lines         18193    18229      +36     
  Branches       1211     1212       +1     
============================================
+ Hits          17697    17736      +39     
+ Misses          385      384       -1     
+ Partials        111      109       -2     
Files Changed Coverage Δ
...in/java/org/vividus/steps/ui/GenericWaitSteps.java 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@uarlouski uarlouski force-pushed the feature/wait-until-element-has-text-matching-regex branch from 67a433d to 7043df0 Compare September 22, 2023 11:15
@sonarqubecloud
Copy link

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 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@uarlouski uarlouski requested a review from valfirst September 22, 2023 13:01
@valfirst valfirst merged commit 543e14b into master Sep 23, 2023
@valfirst valfirst deleted the feature/wait-until-element-has-text-matching-regex branch September 23, 2023 07:21
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.

2 participants
0