mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Added method stubbs for new UI tests checking correct behaviour of dynamic forms
This commit is contained in:
parent
fd7aa10e0c
commit
7a4f1219b0
1 changed files with 95 additions and 0 deletions
|
|
@ -512,4 +512,99 @@ public class ParagraphActionsIT extends AbstractZeppelinIT {
|
|||
handleException("Exception in ParagraphActionsIT while testEditOnDoubleClick ", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSingleDynamicFormTextInput() throws Exception {
|
||||
if (!endToEndTestEnabled()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
createNewNote();
|
||||
|
||||
// Insert text in paragraph 1
|
||||
|
||||
// Run the paragraph
|
||||
|
||||
// Verify status of paragraph
|
||||
|
||||
// Verify there is the text "Hello World"
|
||||
|
||||
// Somehow, change the text of the field, maybe search for World?
|
||||
|
||||
// Verify that there is STILL the text "Hello World"
|
||||
|
||||
// 2nd part of test - Now run this paragraph
|
||||
|
||||
// Verify that we have an expected change "Hello Zeppelin"
|
||||
|
||||
} catch (Exception e) {
|
||||
handleException("Exception in ParagraphActionsIT while testSingleDynamicFormTextInput ", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSingleDynamicFormSelectForm() throws Exception {
|
||||
if (!endToEndTestEnabled()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
createNewNote();
|
||||
|
||||
//desc: Insert 1 select form in paragraph -> modify it
|
||||
//exp: Nothing should happen or run then introduce change and verify there is a change
|
||||
|
||||
} catch (Exception e) {
|
||||
handleException("Exception in ParagraphActionsIT while testSingleDynamicFormTextInput ", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testSingleDynamicFormCheckboxForm() throws Exception {
|
||||
if (!endToEndTestEnabled()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
createNewNote();
|
||||
|
||||
//desc: Insert 1 checkbox in paragraph -> modify it
|
||||
//exp: Nothing should happen or run then introduce change and verify there is a change
|
||||
|
||||
} catch (Exception e) {
|
||||
handleException("Exception in ParagraphActionsIT while testSingleDynamicFormTextInput ", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMultipleDynamicFormsSameType () throws Exception {
|
||||
if (!endToEndTestEnabled()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
createNewNote();
|
||||
|
||||
//desc: Insert 2 dynamic forms (select forms) in paragraph -> modify one
|
||||
//exp: nothing should run, then introduce change and verify there is a change
|
||||
|
||||
} catch (Exception e) {
|
||||
handleException("Exception in ParagraphActionsIT while testSingleDynamicFormTextInput ", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMultipleDynamicFormsDifferentTypes() throws Exception {
|
||||
if (!endToEndTestEnabled()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
createNewNote();
|
||||
|
||||
//desc: Insert 2 different dynamic forms (select form and check box) in paragraph -> modify one
|
||||
//exp: nothing should run then introduce change and verify there is a change
|
||||
|
||||
} catch (Exception e) {
|
||||
handleException("Exception in ParagraphActionsIT while testSingleDynamicFormTextInput ", e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue