Updated testMultipleDynamicFormsSameType based on new behaviour of paragraphs

This commit is contained in:
Guillermo Cabrera 2017-03-20 12:25:16 +03:00
parent 92102bdf5f
commit 3fa2033b27

View file

@ -644,13 +644,17 @@ public class ParagraphActionsIT extends AbstractZeppelinIT {
Select dropDownMenu = new Select(driver.findElement(By.xpath((getParagraphXPath(1) + "//select[1]"))));
dropDownMenu.selectByVisibleText("Apple");
collector.checkThat("After selection in drop down menu, output should not display any of the options",
collector.checkThat("After selection in drop down menu, output should display the new option we selected",
driver.findElement(By.xpath(getParagraphXPath(1) + "//div[contains(@class, 'text plainTextContent')]")).getText(),
CoreMatchers.equalTo("Howdy \nHowdy "));
CoreMatchers.equalTo("Howdy 1\nHowdy "));
runParagraph(1);
driver.findElement(By.xpath(getParagraphXPath(1) + "//span[@class='icon-settings']")).click();
clickAndWait(By.xpath(getParagraphXPath(1) + "//ul/li/form/input[contains(@ng-checked, 'true')]"));
Select sameDropDownMenu = new Select(driver.findElement(By.xpath((getParagraphXPath(1) + "//select"))));
sameDropDownMenu.selectByVisibleText("Orange");
waitForParagraph(1, "FINISHED");
collector.checkThat("Only after running the paragraph, we can see the new output including the selected option",
collector.checkThat("After 'Run on selection change' checkbox is unchecked, the paragraph should not run after selecting a different option",
driver.findElement(By.xpath(getParagraphXPath(1) + "//div[contains(@class, 'text plainTextContent')]")).getText(),
CoreMatchers.equalTo("Howdy 1\nHowdy "));
@ -660,4 +664,4 @@ public class ParagraphActionsIT extends AbstractZeppelinIT {
handleException("Exception in ParagraphActionsIT while testMultipleDynamicFormsSameType ", e);
}
}
}
}