@@ -127,16 +127,18 @@ describe('Agent configuration', () => {
127127 'serviceEnvironmentApi'
128128 ) ;
129129 cy . contains ( 'Create configuration' ) . click ( ) ;
130- cy . getByTestSubj ( 'serviceNameComboBox' ) . click ( ) . type ( 'opbeans-node' ) . type ( '{enter}' ) ;
131-
132- cy . contains ( 'opbeans-node' ) . realClick ( ) ;
130+ cy . getByTestSubj ( 'serviceNameComboBox' ) . find ( 'input' ) . click ( ) ;
131+ cy . getByTestSubj ( 'serviceNameComboBox' ) . type ( 'opbeans-node{enter}' ) ;
133132 cy . wait ( '@serviceEnvironmentApi' ) ;
134133
135- cy . getByTestSubj ( 'serviceEnviromentComboBox' )
136- . click ( { force : true } )
137- . type ( 'prod' )
138- . type ( '{enter}' ) ;
139- cy . contains ( 'production' ) . realClick ( ) ;
134+ cy . getByTestSubj ( 'serviceEnviromentComboBox' ) . find ( 'input' ) . click ( ) ;
135+ cy . getByTestSubj ( 'comboBoxOptionsList serviceEnviromentComboBox-optionsList' ) . should (
136+ 'be.visible'
137+ ) ;
138+ cy . getByTestSubj ( 'comboBoxOptionsList serviceEnviromentComboBox-optionsList' )
139+ . contains ( 'button' , 'production' )
140+ . click ( ) ;
141+
140142 cy . contains ( 'Next step' ) . click ( ) ;
141143 cy . contains ( 'Create configuration' ) ;
142144 cy . contains ( 'Edit' ) . click ( ) ;
@@ -152,13 +154,23 @@ describe('Agent configuration', () => {
152154 'serviceEnvironmentApi'
153155 ) ;
154156 cy . contains ( 'Create configuration' ) . click ( ) ;
155- cy . getByTestSubj ( 'serviceNameComboBox' ) . click ( ) . type ( 'All' ) . type ( '{enter}' ) ;
156- cy . contains ( 'All' ) . realClick ( ) ;
157+ cy . getByTestSubj ( 'serviceNameComboBox' ) . find ( 'input' ) . type ( 'All{enter}' ) ;
158+ cy . getByTestSubj ( 'serviceNameComboBox' ) . find ( 'input' ) . click ( ) ;
159+ cy . getByTestSubj ( 'comboBoxOptionsList serviceNameComboBox-optionsList' ) . should ( 'be.visible' ) ;
160+
161+ cy . getByTestSubj ( 'comboBoxOptionsList serviceNameComboBox-optionsList' )
162+ . contains ( 'button' , 'All' )
163+ . click ( ) ;
157164 cy . wait ( '@serviceEnvironmentApi' ) ;
158165
159- cy . getByTestSubj ( 'serviceEnviromentComboBox' ) . click ( { force : true } ) . type ( 'All' ) ;
166+ cy . getByTestSubj ( 'serviceEnviromentComboBox' ) . find ( 'input' ) . click ( ) ;
167+ cy . getByTestSubj ( 'comboBoxOptionsList serviceEnviromentComboBox-optionsList' ) . should (
168+ 'be.visible'
169+ ) ;
170+ cy . getByTestSubj ( 'comboBoxOptionsList serviceEnviromentComboBox-optionsList' )
171+ . contains ( 'button' , 'All' )
172+ . click ( ) ;
160173
161- cy . get ( 'mark' ) . contains ( 'All' ) . click ( { force : true } ) ;
162174 cy . contains ( 'Next step' ) . click ( ) ;
163175 cy . get ( '[data-test-subj="settingsPage_serviceName"]' ) . contains ( 'All' ) ;
164176 cy . get ( '[data-test-subj="settingsPage_environmentName"]' ) . contains ( 'All' ) ;
0 commit comments