@@ -168,15 +168,15 @@ describe('Creating Workflows Using Various Methods', () => {
168168 } ) ;
169169
170170 it ( 'Create workflow from hybrid search template' , ( ) => {
171- createPreset ( 'Hybrid Search' ) ;
171+ createPreset ( 'Hybrid Search' , true ) ;
172172 } ) ;
173173
174174 it ( 'Create workflow from multimodal template' , ( ) => {
175- createPreset ( 'Multimodal Search' ) ;
175+ createPreset ( 'Multimodal Search' , true ) ;
176176 } ) ;
177177
178178 it ( 'Create workflow from custom template' , ( ) => {
179- createPreset ( 'Custom Search' ) ;
179+ createPreset ( 'Custom Search' , false ) ;
180180 } ) ;
181181
182182 after ( ( ) => {
@@ -188,7 +188,7 @@ describe('Creating Workflows Using Various Methods', () => {
188188} ) ;
189189
190190// Reusable fn to check the preset exists, and able to create it, and navigate to its details page.
191- function createPreset ( presetName ) {
191+ function createPreset ( presetName , containsModels = false ) {
192192 cy . getElementByDataTestId ( 'createWorkflowButton' , { timeout : FF_TIMEOUT } )
193193 . should ( 'be.visible' )
194194 . click ( ) ;
@@ -205,8 +205,12 @@ function createPreset(presetName) {
205205 . clear ( )
206206 . type ( presetName . toLowerCase ( ) . replace ( / \s / g, '' ) ) ;
207207 } ) ;
208- cy . getElementByDataTestId ( 'selectDeployedModel' ) . should ( 'be.visible' ) . click ( ) ;
209- cy . get ( '.euiSuperSelect__item' ) . contains ( 'BedRock' ) . click ( ) ;
208+ if ( containsModels ) {
209+ cy . getElementByDataTestId ( 'selectDeployedModel' )
210+ . should ( 'be.visible' )
211+ . click ( ) ;
212+ cy . get ( '.euiSuperSelect__item' ) . contains ( 'BedRock' ) . click ( ) ;
213+ }
210214 cy . getElementByDataTestId ( 'quickConfigureCreateButton' )
211215 . should ( 'be.visible' )
212216 . click ( ) ;
0 commit comments