mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Add test case for behaviour of 'Run on selection change'
This commit is contained in:
parent
8a0ca30fd7
commit
66c6c21d1b
1 changed files with 29 additions and 0 deletions
|
|
@ -256,6 +256,35 @@ public class ParagraphActionsIT extends AbstractZeppelinIT {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRunOnSelectionCheckbox() throws Exception {
|
||||
if (!endToEndTestEnabled()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
String xpathToCheckbox = getParagraphXPath(1) + "//ul/li/form/input[contains(@class, 'ng-not-empty')]";
|
||||
|
||||
createNewNote();
|
||||
|
||||
waitForParagraph(1, "READY");
|
||||
setTextOfParagraph(1, "%md My selection is ${my selection=1,1|2|3}");
|
||||
runParagraph(1);
|
||||
|
||||
driver.findElement(By.xpath(getParagraphXPath(1) + "//span[@class='icon-settings']")).click();
|
||||
collector.checkThat("'Run on selection change' checkbox will be shown under dropdown menu ",
|
||||
driver.findElement(By.xpath(getParagraphXPath(1) + "//ul/li/form/input[contains(@ng-model, 'isAutoRunTrue')]")).isDisplayed(),
|
||||
CoreMatchers.equalTo(true));
|
||||
|
||||
driver.findElement(By.xpath(xpathToCheckbox)).click();
|
||||
collector.checkThat("If 'Run on selection change' checkbox is unchecked, 'isAutoRunTrue' will be false ",
|
||||
driver.findElement(By.xpath(getParagraphXPath(1) + "//ul/li/span[contains(@ng-if, 'isAutoRunTrue == false')]")).isDisplayed(),
|
||||
CoreMatchers.equalTo(true));
|
||||
|
||||
} catch (Exception e) {
|
||||
handleException("Exception in ParagraphActionsIT while testRunOnSelectionButton ", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testClearOutputButton() throws Exception {
|
||||
if (!endToEndTestEnabled()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue