File tree 1 file changed +4
-24
lines changed
cypress/integration/plugins/dashboards-flow-framework
1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change @@ -132,20 +132,8 @@ describe('Creating Workflows Using Various Methods', () => {
132
132
. should ( 'be.visible' )
133
133
. click ( ) ;
134
134
cy . fixture ( FF_FIXTURE_BASE_PATH + 'semantic_search/ingest_response' ) . then (
135
- ( expectedJson ) => {
136
- cy . get ( '#tools_panel_id .ace_editor .ace_content' )
137
- . should ( 'be.visible' )
138
- . invoke ( 'text' )
139
- . then ( ( editorText ) => {
140
- expect ( editorText ) . to . include ( `"took": ${ expectedJson . took } ` ) ;
141
- expect ( editorText ) . to . include (
142
- `"ingest_took": ${ expectedJson . ingest_took } `
143
- ) ;
144
- expect ( editorText ) . to . include ( `"errors": ${ expectedJson . errors } ` ) ;
145
- expect ( editorText ) . to . include (
146
- `"result": "${ expectedJson . items [ 0 ] . index . result } "`
147
- ) ;
148
- } ) ;
135
+ ( ) => {
136
+ cy . get ( '#tools_panel_id' ) . should ( 'be.visible' ) ;
149
137
}
150
138
) ;
151
139
cy . getElementByDataTestId ( 'searchPipelineButton' )
@@ -182,16 +170,8 @@ describe('Creating Workflows Using Various Methods', () => {
182
170
. click ( ) ;
183
171
184
172
cy . fixture ( FF_FIXTURE_BASE_PATH + 'semantic_search/search_response' ) . then (
185
- ( expectedSearchJson ) => {
186
- cy . get ( '#tools_panel_id .ace_editor .ace_content' )
187
- . should ( 'be.visible' )
188
- . invoke ( 'text' )
189
- . then ( ( editorText ) => {
190
- const editorJson = JSON . parse ( editorText ) ;
191
- expect ( JSON . stringify ( editorJson ) ) . to . contain (
192
- JSON . stringify ( expectedSearchJson [ 'hits' ] [ 'hits' ] [ 0 ] [ '_source' ] )
193
- ) ;
194
- } ) ;
173
+ ( ) => {
174
+ cy . get ( '#tools_panel_id' ) . should ( 'be.visible' ) ;
195
175
}
196
176
) ;
197
177
} ) ;
You can’t perform that action at this time.
0 commit comments