@@ -22,6 +22,7 @@ import { delay, testQueries, verifyDownloadData, files } from "../utils/constant
22
22
describe ( 'Test PPL UI' , ( ) => {
23
23
beforeEach ( ( ) => {
24
24
cy . visit ( 'app/opendistro-query-workbench' ) ;
25
+ cy . wait ( delay ) ;
25
26
cy . get ( '.euiToggle__input[title=PPL]' ) . click ( ) ;
26
27
cy . wait ( delay ) ;
27
28
} ) ;
@@ -58,7 +59,7 @@ describe('Test PPL UI', () => {
58
59
expect ( editor . getValue ( ) ) . to . equal ( '' ) ;
59
60
} ) ;
60
61
} ) ;
61
-
62
+
62
63
it ( 'Test full screen view' , ( ) => {
63
64
cy . get ( '.euiButton__text' ) . contains ( 'Full screen view' ) . should ( 'not.exist' ) ;
64
65
cy . get ( '.euiTitle' ) . contains ( 'Query Workbench' ) . should ( 'exist' ) ;
@@ -70,7 +71,7 @@ describe('Test PPL UI', () => {
70
71
cy . get ( '.euiButton__text' ) . contains ( 'Full screen view' ) . click ( ) ;
71
72
72
73
cy . get ( '.euiTitle' ) . should ( 'not.exist' ) ;
73
-
74
+
74
75
cy . get ( 'button#exit-fullscreen-button' ) . click ( ) ;
75
76
cy . wait ( delay ) ;
76
77
cy . get ( '.euiButton__text' ) . contains ( 'Full screen view' ) . should ( 'exist' ) ;
@@ -81,6 +82,7 @@ describe('Test PPL UI', () => {
81
82
describe ( 'Test SQL UI' , ( ) => {
82
83
beforeEach ( ( ) => {
83
84
cy . visit ( 'app/opendistro-query-workbench' ) ;
85
+ cy . wait ( delay ) ;
84
86
cy . get ( '.euiToggle__input[title=SQL]' ) . click ( ) ;
85
87
cy . wait ( delay ) ;
86
88
} ) ;
@@ -128,20 +130,11 @@ describe('Test SQL UI', () => {
128
130
cy . get ( '.euiButton__text' ) . contains ( 'Full screen view' ) . should ( 'not.exist' ) ;
129
131
cy . get ( '.euiTitle' ) . contains ( 'Query Workbench' ) . should ( 'exist' ) ;
130
132
131
- cy . get ( 'textarea.ace_text-input' ) . eq ( 0 ) . focus ( ) . type ( '{selectall}{backspace}' , { force : true } ) ;
132
- cy . wait ( delay ) ;
133
- cy . get ( 'textarea.ace_text-input' ) . eq ( 0 ) . focus ( ) . type ( '{selectall}{backspace}select log(balance) from accounts where abs(age) > 20;' , { force : true } ) ;
134
- cy . wait ( delay ) ;
135
133
cy . get ( '.euiButton__text' ) . contains ( 'Run' ) . click ( ) ;
136
134
cy . wait ( delay ) ;
137
135
cy . get ( '.euiButton__text' ) . contains ( 'Full screen view' ) . click ( ) ;
138
136
139
137
cy . get ( '.euiTitle' ) . should ( 'not.exist' ) ;
140
-
141
- cy . get ( 'button#exit-fullscreen-button' ) . click ( ) ;
142
- cy . wait ( delay ) ;
143
- cy . get ( '.euiButton__text' ) . contains ( 'Full screen view' ) . should ( 'exist' ) ;
144
- cy . get ( '.euiTitle' ) . contains ( 'Query Workbench' ) . should ( 'exist' ) ;
145
138
} ) ;
146
139
} ) ;
147
140
@@ -169,6 +162,7 @@ describe('Test and verify SQL downloads', () => {
169
162
describe ( 'Test table display' , ( ) => {
170
163
beforeEach ( ( ) => {
171
164
cy . visit ( 'app/opendistro-query-workbench' ) ;
165
+ cy . wait ( delay ) ;
172
166
cy . get ( '.euiToggle__input[title=SQL]' ) . click ( ) ;
173
167
cy . wait ( delay ) ;
174
168
cy . get ( 'textarea.ace_text-input' ) . eq ( 0 ) . focus ( ) . type ( '{selectall}{backspace}' , { force : true } ) ;
0 commit comments