mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Updated testMultipleDynamicFormsSameType based on new behaviour of paragraphs
This commit is contained in:
parent
92102bdf5f
commit
3fa2033b27
1 changed files with 9 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue