@@ -122,13 +122,13 @@ describe('Create Stream', () => {
122122 // Select existing destination
123123 logsStreamForm . selectExistingDestination ( mockDestination . label ) ;
124124
125- // Test Connection should be enabled
125+ // Test Connection should be disabled for existing destination
126126 ui . button
127127 . findByTitle ( 'Test Connection' )
128- . should ( 'be.enabled ' )
128+ . should ( 'be.disabled ' )
129129 . should ( 'have.attr' , 'type' , 'button' ) ;
130130
131- // Create Stream should be enabled without testing connection for existing destination
131+ // Create Stream should be enabled
132132 cy . findByRole ( 'button' , { name : 'Create Stream' } )
133133 . should ( 'be.enabled' )
134134 . should ( 'have.attr' , 'type' , 'button' ) ;
@@ -223,32 +223,33 @@ describe('Create Stream', () => {
223223 logsStreamForm . findClusterCheckbox ( 'cluster-3' ) . should ( 'be.checked' ) ;
224224 cy . findByLabelText ( 'Toggle cluster-2 cluster' ) . should ( 'be.disabled' ) ;
225225
226+ // TODO: uncomment when "Automatically include all existing and recently configured clusters" feature is available
226227 // Use "Toggle all clusters" to unselect all eligible clusters
227- logsStreamForm . findClusterCheckbox ( 'all' ) . uncheck ( ) ;
228- logsStreamForm . findClusterCheckbox ( 'all' ) . should ( 'not.be.checked' ) ;
229- logsStreamForm . findClusterCheckbox ( 'cluster-1' ) . should ( 'not.be.checked' ) ;
230- logsStreamForm . findClusterCheckbox ( 'cluster-3' ) . should ( 'not.be.checked' ) ;
228+ // logsStreamForm.findClusterCheckbox('all').uncheck();
229+ // logsStreamForm.findClusterCheckbox('all').should('not.be.checked');
230+ // logsStreamForm.findClusterCheckbox('cluster-1').should('not.be.checked');
231+ // logsStreamForm.findClusterCheckbox('cluster-3').should('not.be.checked');
231232
232233 // Use "Automatically include all existing and recently configured clusters" to select all eligible clusters
233- cy . findByLabelText (
234- 'Automatically include all existing and recently configured clusters.'
235- )
236- . should ( 'exist' )
237- . should ( 'be.enabled' ) ;
238- cy . findByLabelText (
239- 'Automatically include all existing and recently configured clusters.'
240- ) . click ( ) ;
241-
242- logsStreamForm . findClusterCheckbox ( 'all' ) . should ( 'be.disabled' ) ;
243- logsStreamForm
244- . findClusterCheckbox ( 'cluster-1' )
245- . should ( 'be.disabled' )
246- . should ( 'be.checked' ) ;
247- logsStreamForm
248- . findClusterCheckbox ( 'cluster-3' )
249- . should ( 'be.disabled' )
250- . should ( 'be.checked' ) ;
251- cy . findByLabelText ( 'Toggle cluster-2 cluster' ) . should ( 'be.disabled' ) ;
234+ // cy.findByLabelText(
235+ // 'Automatically include all existing and recently configured clusters.'
236+ // )
237+ // .should('exist')
238+ // .should('be.enabled');
239+ // cy.findByLabelText(
240+ // 'Automatically include all existing and recently configured clusters.'
241+ // ).click();
242+ //
243+ // logsStreamForm.findClusterCheckbox('all').should('be.disabled');
244+ // logsStreamForm
245+ // .findClusterCheckbox('cluster-1')
246+ // .should('be.disabled')
247+ // .should('be.checked');
248+ // logsStreamForm
249+ // .findClusterCheckbox('cluster-3')
250+ // .should('be.disabled')
251+ // .should('be.checked');
252+ // cy.findByLabelText('Toggle cluster-2 cluster').should('be.disabled');
252253
253254 // Select existing destination
254255 logsStreamForm . selectExistingDestination ( mockDestination . label ) ;
@@ -269,7 +270,7 @@ describe('Create Stream', () => {
269270 type : streamType . LKEAuditLogs ,
270271 destinations : [ mockDestination . id ] ,
271272 details : {
272- is_auto_add_all_clusters_enabled : true ,
273+ cluster_ids : [ 1 , 3 ] , // TODO: change to is_auto_add_all_clusters_enabled: true when "Automatically include all existing and recently configured clusters" feature is available
273274 } ,
274275 } ) ;
275276 } ) ;
0 commit comments