-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-1065] Flaky Test - ParagraphActionsIT.testRemoveButton #1091
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
Conversation
| sleep(1000, true); | ||
| driver.findElement(By.xpath("//div[@class='modal-dialog'][contains(.,'delete this paragraph')]" + | ||
| "//div[@class='modal-footer']//button[contains(.,'OK')]")).click(); | ||
| sleep(1000, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to use this method vs ZeppelinITUtils.sleep(1000, false); below in the same method?
If they are the same, may be while we are here it can be refactored to use the same impl?
|
@prabhjyotsingh thank you for fixing this one! What do you think, if would it make sense to reduce total wait time and get this test more stable with a wait polling implementation to locate such elements, instead of explicit wait everywhere? I.e there are already one for text and paragraph here AbstractZeppelinIT.waitForText wich uses AbstractZeppelinIT.pollingWait underneath. Would it make sense to add something like |
- use clickAndWait before reading any WebElement
5073792 to
f1b42b9
Compare
|
@bzz fair point;
|
|
CI fails for ZEPPELIN-1063 |
|
|
||
| protected void clickAndWait(final By locator) { | ||
| driver.findElement(locator).click(); | ||
| ZeppelinITUtils.sleep(1000, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Are there any reason not to use polling facilities of pollingWait ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, just waiting for any animation, show/hide or any (JavaScript) binding to the element that might be happening after it is visible.
|
Thank you for pointing out ZEPPELIN-1063 - have updated it's description and will fix it asap. |
|
I'll merge this, and make |
|
Sounds good, and this PR looks great to me, +1 for merging asap |
|
@prabhjyotsingh on closing the JIRA issues, please do not forget to set correct Curren one is 0.7.0 if changes were merged only to master. I have updated 1065 |
What is this PR for?
This is fix for fixing flaky CI failing test
What type of PR is it?
[Bug Fix]
Todos
What is the Jira issue?
How should this be tested?
CI should be green
Questions: