From f4ca4b792f94139f7a0ed50b955f1c9ab92a5432 Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> Date: Thu, 14 Nov 2024 20:02:06 +0100 Subject: [PATCH] test: Fix flaky tags tests (no-changelog) (#11746) --- cypress/pages/workflow.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/pages/workflow.ts b/cypress/pages/workflow.ts index cd1e7d9462..ee90fa55e8 100644 --- a/cypress/pages/workflow.ts +++ b/cypress/pages/workflow.ts @@ -17,7 +17,8 @@ export class WorkflowPage extends BasePage { workflowTagsContainer: () => cy.getByTestId('workflow-tags-container'), workflowTagsInput: () => this.getters.workflowTagsContainer().then(($el) => cy.wrap($el.find('input').first())), - tagPills: () => cy.get('[data-test-id="workflow-tags-container"] span.el-tag'), + tagPills: () => + cy.get('[data-test-id="workflow-tags-container"] span.el-tag:not(.count-container)'), nthTagPill: (n: number) => cy.get(`[data-test-id="workflow-tags-container"] span.el-tag:nth-child(${n})`), tagsDropdown: () => cy.getByTestId('workflow-tags-dropdown'),