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

zehnder pushed a commit to branch 
4241-flaky-e2e-tests-using-the-file_stream-adapter
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to 
refs/heads/4241-flaky-e2e-tests-using-the-file_stream-adapter by this push:
     new 1e72ccc71c fix(#4241): wait for file selection before continuing 
File_Stream setup
1e72ccc71c is described below

commit 1e72ccc71cf88803e0b93becf968bfdddda9b279
Author: Philipp Zehnder <[email protected]>
AuthorDate: Wed Mar 11 14:43:46 2026 +0100

    fix(#4241): wait for file selection before continuing File_Stream setup
---
 ui/cypress/support/utils/connect/ConnectBtns.ts                     | 6 ++++++
 ui/cypress/support/utils/connect/ConnectUtils.ts                    | 5 +++++
 .../static-file-input/static-file-input.component.html              | 1 +
 3 files changed, 12 insertions(+)

diff --git a/ui/cypress/support/utils/connect/ConnectBtns.ts 
b/ui/cypress/support/utils/connect/ConnectBtns.ts
index 864a6a2470..b014cb076d 100644
--- a/ui/cypress/support/utils/connect/ConnectBtns.ts
+++ b/ui/cypress/support/utils/connect/ConnectBtns.ts
@@ -148,6 +148,12 @@ export class ConnectBtns {
         return cy.dataCy('adapter-settings-next-button');
     }
 
+    public static fileInputSelected() {
+        return cy.dataCy('file-input-selected', {
+            timeout: 10000,
+        });
+    }
+
     // ========================================================================
 
     // =====================  Event Schema buttons  ==========================
diff --git a/ui/cypress/support/utils/connect/ConnectUtils.ts 
b/ui/cypress/support/utils/connect/ConnectUtils.ts
index db86d91e02..ce0467a955 100644
--- a/ui/cypress/support/utils/connect/ConnectUtils.ts
+++ b/ui/cypress/support/utils/connect/ConnectUtils.ts
@@ -194,6 +194,11 @@ export class ConnectUtils {
 
             StaticPropertyUtils.input(adapterInput.formatConfiguration);
         }
+
+        // For file adapters, wait until the file selection state is rendered 
to reduce test flakiness.
+        if (adapterInput?.adapterType === 'File_Stream') {
+            ConnectBtns.fileInputSelected().should('be.visible');
+        }
     }
 
     public static finishEventSchemaConfiguration() {
diff --git 
a/ui/src/app/core-ui/static-properties/static-file-input/static-file-input.component.html
 
b/ui/src/app/core-ui/static-properties/static-file-input/static-file-input.component.html
index b56250469a..3caead52b3 100644
--- 
a/ui/src/app/core-ui/static-properties/static-file-input/static-file-input.component.html
+++ 
b/ui/src/app/core-ui/static-properties/static-file-input/static-file-input.component.html
@@ -47,6 +47,7 @@
                             matSuffix
                             mat-icon-button
                             [attr.aria-label]="'Clear' | translate"
+                            data-cy="file-input-selected"
                             (click)="selectedFile = {}"
                         >
                             <mat-icon>close</mat-icon>

Reply via email to