This is an automated email from the ASF dual-hosted git repository.

dominikriemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 477dd7a7b2 fix: flaky editAdapter (#4591)
477dd7a7b2 is described below

commit 477dd7a7b2cb3649b8ded6334b367de874ca83ab
Author: Jacqueline Höllig <[email protected]>
AuthorDate: Fri Jun 19 10:24:42 2026 +0200

    fix: flaky editAdapter (#4591)
---
 ui/cypress/support/utils/GeneralUtils.ts         | 16 ++++++++++------
 ui/cypress/support/utils/connect/ConnectUtils.ts |  2 ++
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/ui/cypress/support/utils/GeneralUtils.ts 
b/ui/cypress/support/utils/GeneralUtils.ts
index b972c0acf0..e8ace9468a 100644
--- a/ui/cypress/support/utils/GeneralUtils.ts
+++ b/ui/cypress/support/utils/GeneralUtils.ts
@@ -28,21 +28,25 @@ export class GeneralUtils {
             timeout: 10000,
         })
             .scrollIntoView()
+            .should('be.visible')
             .within(() => {
-                cy.dataCy('more-options').click({ force: true });
+                cy.dataCy('more-options')
+                    .should('be.visible')
+                    .and('not.be.disabled')
+                    .click({ force: true });
             });
 
-        GeneralUtils.visibleMaterialMenu().should('exist');
+        GeneralUtils.visibleMaterialMenu().should('be.visible');
     }
 
     public static closeVisibleMaterialMenu() {
         cy.get('body').type('{esc}', { force: true });
-        cy.get('.cdk-overlay-container .mat-mdc-menu-panel:visible').should(
-            'not.exist',
-        );
+        GeneralUtils.visibleMaterialMenu().should('not.exist');
     }
 
     public static visibleMaterialMenu() {
-        return cy.get('.cdk-overlay-container .mat-mdc-menu-panel:visible');
+        return cy.get(
+            '.cdk-overlay-container .mat-mdc-menu-panel, 
.cdk-overlay-container .mat-menu-panel',
+        );
     }
 }
diff --git a/ui/cypress/support/utils/connect/ConnectUtils.ts 
b/ui/cypress/support/utils/connect/ConnectUtils.ts
index 96f6a51fef..38fb88c406 100644
--- a/ui/cypress/support/utils/connect/ConnectUtils.ts
+++ b/ui/cypress/support/utils/connect/ConnectUtils.ts
@@ -451,6 +451,8 @@ export class ConnectUtils {
         ConnectBtns.startAdapter().should('not.be.disabled');
 
         ConnectBtns.startAdapter().click();
+        ConnectBtns.stopAdapter().should('be.visible');
+        ConnectBtns.adapterOperationInProgressSpinner().should('not.exist');
 
         ConnectUtils.validateEventsInPreview(adapterName, amountOfProperties);
     }

Reply via email to