Replace 'sleep(1000)' with waitForParagraph

This commit is contained in:
AhyoungRyu 2017-03-22 11:20:28 +09:00
parent 84f1b2a2dc
commit 795410cf02

View file

@ -300,7 +300,7 @@ public class ParagraphActionsIT extends AbstractZeppelinIT {
// run paragraph manually by pressing ENTER
driver.findElement(By.xpath(xpathToDropdownMenu)).sendKeys(Keys.ENTER);
ZeppelinITUtils.sleep(1000, true);
waitForParagraph(1, "FINISHED");
collector.checkThat("Even if 'RunOnSelectionChange' is set as false, still can run the paragraph by pressing ENTER ",
driver.findElement(By.xpath(xpathToResultText)).getText(),
CoreMatchers.equalTo("My selection is 1"));