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

zehnder pushed a commit to branch fix-e2e-tests
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 03b9793701873e43da69d0d0578e022f273f0ae2
Author: Philipp Zehnder <[email protected]>
AuthorDate: Fri Feb 27 10:10:34 2026 +0100

    feat: fix renamePipelineTest by adding data-cy attribute for pipeline name
---
 ui/cypress/support/utils/pipeline/PipelineBtns.ts                   | 4 ++++
 ui/cypress/support/utils/pipeline/PipelineUtils.ts                  | 6 ++----
 .../components/pipeline-overview/pipeline-overview.component.html   | 4 +++-
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/ui/cypress/support/utils/pipeline/PipelineBtns.ts 
b/ui/cypress/support/utils/pipeline/PipelineBtns.ts
index 8f57da5995..0f8ca3487c 100644
--- a/ui/cypress/support/utils/pipeline/PipelineBtns.ts
+++ b/ui/cypress/support/utils/pipeline/PipelineBtns.ts
@@ -141,4 +141,8 @@ export class PipelineBtns {
             .dataCy('sp-table-select-all-checkbox')
             .find('input[type="checkbox"]');
     }
+
+    public static pipelineNameCells() {
+        return cy.dataCy('pipeline-name-cell', { timeout: 10000 });
+    }
 }
diff --git a/ui/cypress/support/utils/pipeline/PipelineUtils.ts 
b/ui/cypress/support/utils/pipeline/PipelineUtils.ts
index 697b2ed36d..577ba12775 100644
--- a/ui/cypress/support/utils/pipeline/PipelineUtils.ts
+++ b/ui/cypress/support/utils/pipeline/PipelineUtils.ts
@@ -247,11 +247,9 @@ export class PipelineUtils {
     }
 
     public static verifyPipelineName(expectedName: string) {
-        cy.dataCy('all-pipelines-table', { timeout: 10000 })
+        PipelineBtns.pipelineNameCells()
             .first()
-            .within(() => {
-                cy.get('td').eq(2).should('contain', expectedName);
-            });
+            .should('contain.text', expectedName);
     }
 
     public static verifyPipelineCount(expectedCount: number) {
diff --git 
a/ui/src/app/pipelines/components/pipeline-overview/pipeline-overview.component.html
 
b/ui/src/app/pipelines/components/pipeline-overview/pipeline-overview.component.html
index 6d36ff69df..b627f15ccf 100644
--- 
a/ui/src/app/pipelines/components/pipeline-overview/pipeline-overview.component.html
+++ 
b/ui/src/app/pipelines/components/pipeline-overview/pipeline-overview.component.html
@@ -167,7 +167,9 @@
         <td mat-cell *matCellDef="let pipeline" class="truncate">
             <div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="5px">
                 <div fxLayout="column" fxLayoutAlign="start start">
-                    <span class="text-sm">{{ pipeline.name }}</span>
+                    <span class="text-sm" data-cy="pipeline-name-cell">{{
+                        pipeline.name
+                    }}</span>
                     <small> {{ pipeline.description }}</small>
                 </div>
             </div>

Reply via email to