@@ -15,9 +15,9 @@ const databaseHelper = new DatabaseHelper();
15
15
16
16
const rdiInstance : AddNewRdiParameters = {
17
17
name : 'testInstance' ,
18
- url : 'http ://localhost:4000 ' ,
18
+ url : 'https ://11.111.111.111 ' ,
19
19
username : 'username' ,
20
- password : 'password '
20
+ password : '111 '
21
21
} ;
22
22
23
23
//skip the tests until rdi integration is added
@@ -85,6 +85,7 @@ test('Verify that user insert template for jobs', async() => {
85
85
// should be empty config
86
86
await rdiInstancePage . PipelineManagementPanel . addJob ( jobName ) ;
87
87
88
+ await rdiInstancePage . PipelineManagementPanel . openJobByName ( jobName ) ;
88
89
await t . expect ( rdiInstancePage . templateApplyButton . visible ) . ok ( 'the template popover is not expanded' ) ;
89
90
const buttonClass = rdiInstancePage . templateApplyButton . getAttribute ( 'class' ) ;
90
91
await t . expect ( buttonClass ) . notContains ( disabledAttribute , 'Apply button is disabled' ) ;
@@ -94,7 +95,7 @@ test('Verify that user insert template for jobs', async() => {
94
95
await t . click ( rdiInstancePage . templateButton ) ;
95
96
await t . expect ( rdiInstancePage . templateApplyButton . visible ) . ok ( 'the template popover is not expanded' ) ;
96
97
await t . expect ( rdiInstancePage . pipelineDropdown . textContent ) . eql ( defaultValue , 'the default value is set incorrectly' ) ;
97
- await rdiInstancePage . setTemplateDropdownValue ( RdiTemplatePipelineType . WriteBehind ) ;
98
+ await rdiInstancePage . setTemplateDropdownValue ( RdiTemplatePipelineType . Ingest ) ;
98
99
99
100
//verify uniq templates words - should be undated when templates are added
100
101
const enteredText = await rdiInstancePage . MonacoEditor . getTextFromMonaco ( ) ;
@@ -120,9 +121,9 @@ test('Verify that user can open an additional editor to work with SQL and JMESPa
120
121
const jobName = 'testJob' ;
121
122
const sqlText = 'SELECT test FROM test1' ;
122
123
const SQLiteText = 's' ;
123
- const SQLiteAutoCompleteText = 'STRFTIME(format, time_value )' ;
124
+ const SQLiteAutoCompleteText = 'SIGN(X )' ;
124
125
const JMESPathText = 'r' ;
125
- const JMESPathAutoCompleteText = 'regex_replace ' ;
126
+ const JMESPathAutoCompleteText = 'REGEX_REPLACE ' ;
126
127
127
128
await rdiInstancePage . PipelineManagementPanel . addJob ( jobName ) ;
128
129
await rdiInstancePage . PipelineManagementPanel . openJobByName ( jobName ) ;
@@ -136,7 +137,7 @@ test('Verify that user can open an additional editor to work with SQL and JMESPa
136
137
await t . expect ( rdiInstancePage . draggableArea . exists ) . ok ( 'SQL/JMESPath editor is not displayed' ) ;
137
138
138
139
// Verify that user can see SQL(set by default) and JMESPath editor options
139
- await t . expect ( rdiInstancePage . dedicatedLanguageSelect . textContent ) . eql ( 'SQL ' , 'SQL is not set by default' ) ;
140
+ await t . expect ( rdiInstancePage . dedicatedLanguageSelect . textContent ) . eql ( 'SQLite functions ' , 'SQL is not set by default' ) ;
140
141
141
142
// Verify that user can close the additional editor
142
143
await rdiInstancePage . MonacoEditor . sendTextToMonaco ( rdiInstancePage . draggableArea , sqlText , false ) ;
@@ -158,7 +159,7 @@ test('Verify that user can open an additional editor to work with SQL and JMESPa
158
159
// Start type characters and select command
159
160
await rdiInstancePage . MonacoEditor . sendTextToMonaco ( rdiInstancePage . draggableArea , JMESPathText ) ;
160
161
// Verify that the list with auto-suggestions is displayed
161
- await t . expect ( rdiInstancePage . MonacoEditor . monacoSuggestion . count ) . eql ( 3 , 'Auto-suggestions are not displayed' ) ;
162
+ await t . expect ( rdiInstancePage . MonacoEditor . monacoSuggestion . count ) . gt ( 1 , 'Auto-suggestions are not displayed' ) ;
162
163
await t . pressKey ( 'tab' ) ;
163
164
await t . click ( rdiInstancePage . EditorButton . applyBtn ) ;
164
165
await t . expect ( await rdiInstancePage . MonacoEditor . getTextFromMonaco ( ) ) . contains ( JMESPathAutoCompleteText , 'Text from JMESPath editor not applied' ) ;
@@ -168,7 +169,7 @@ test('Verify that user can open an additional editor to work with SQL and JMESPa
168
169
// Start type characters and select command
169
170
await rdiInstancePage . MonacoEditor . sendTextToMonaco ( rdiInstancePage . draggableArea , SQLiteText ) ;
170
171
// Verify that the list with auto-suggestions is displayed
171
- await t . expect ( rdiInstancePage . MonacoEditor . monacoSuggestion . count ) . eql ( 3 , 'Auto-suggestions are not displayed' ) ;
172
+ await t . expect ( rdiInstancePage . MonacoEditor . monacoSuggestion . count ) . gt ( 1 , 'Auto-suggestions are not displayed' ) ;
172
173
await t . pressKey ( 'tab' ) ;
173
174
await t . click ( rdiInstancePage . EditorButton . applyBtn ) ;
174
175
await t . expect ( await rdiInstancePage . MonacoEditor . getTextFromMonaco ( ) ) . contains ( SQLiteAutoCompleteText , 'Text from SQLite editor not applied' ) ;
0 commit comments