Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-1065] Flaky Test - ParagraphActionsIT.testRemoveButton - #1091
[ZEPPELIN-1065] Flaky Test - ParagraphActionsIT.testRemoveButton#1091prabhjyotsingh wants to merge 2 commits into
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.
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?
bzz
commented
Jun 27, 2016
@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
f1b42b9Compareprabhjyotsingh
commented
Jun 27, 2016
@bzz fair point;
|
prabhjyotsingh
commented
Jun 27, 2016
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.
Looks great!
Are there any reason not to use polling facilities of pollingWait ?
There was a problem hiding this comment.
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. |
prabhjyotsingh
commented
Jun 27, 2016
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: