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

dominikriemer pushed a commit to branch fix-cypress-test-charts
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 82e6f5a0f64ce31fefb816f3543e3525e3b21207
Author: Dominik Riemer <[email protected]>
AuthorDate: Mon Nov 2 20:45:52 2026 +0100

    fix cypress chart test
---
 ui/cypress/support/utils/chart/ChartUtils.ts | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/ui/cypress/support/utils/chart/ChartUtils.ts 
b/ui/cypress/support/utils/chart/ChartUtils.ts
index 13e2477e69..fbfdfa8fca 100644
--- a/ui/cypress/support/utils/chart/ChartUtils.ts
+++ b/ui/cypress/support/utils/chart/ChartUtils.ts
@@ -631,19 +631,32 @@ export class ChartUtils {
     public static validateFilterOptions(
         expectedFilterOptions: ('=' | '<' | '<=' | '>=' | '>' | '!=')[],
     ) {
-        cy.dataCy('design-panel-data-settings-filter-operator')
-            .click()
-            .dataCy('operator-', {}, true)
-            .should('have.length', expectedFilterOptions.length);
+        // Selecting an operator updates the table before its closing animation
+        // necessarily finishes. Wait for the old panel before reopening it.
+        cy.dataCy('operator-', {}, true).should('not.exist');
+        cy.dataCy('design-panel-data-settings-filter-operator').click();
+        cy.dataCy('design-panel-data-settings-filter-operator').should(
+            'have.attr',
+            'aria-expanded',
+            'true',
+        );
+        cy.dataCy('operator-', {}, true).should(
+            'have.length',
+            expectedFilterOptions.length,
+        );
 
         expectedFilterOptions.forEach(option => {
             const escapedOption = option.replace(/([=<>!])/g, '\\$1');
             cy.dataCy('operator-' + escapedOption).should('be.visible');
         });
 
-        cy.dataCy('design-panel-data-settings-filter-operator').click({
-            force: true,
-        });
+        cy.dataCy('design-panel-data-settings-filter-operator').type('{esc}');
+        cy.dataCy('design-panel-data-settings-filter-operator').should(
+            'have.attr',
+            'aria-expanded',
+            'false',
+        );
+        cy.dataCy('operator-', {}, true).should('not.exist');
     }
 
     public static validateAutoCompleteOptions(options: string[]) {

Reply via email to