fix unrelated flaky tests

This commit is contained in:
Mutasem Aldmour 2024-11-14 16:37:17 +01:00
parent 49523264e6
commit 553246a954
No known key found for this signature in database
GPG key ID: 3DFA8122BB7FD6B8

View file

@ -17,7 +17,8 @@ export class WorkflowPage extends BasePage {
workflowTagsContainer: () => cy.getByTestId('workflow-tags-container'), workflowTagsContainer: () => cy.getByTestId('workflow-tags-container'),
workflowTagsInput: () => workflowTagsInput: () =>
this.getters.workflowTagsContainer().then(($el) => cy.wrap($el.find('input').first())), 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) => nthTagPill: (n: number) =>
cy.get(`[data-test-id="workflow-tags-container"] span.el-tag:nth-child(${n})`), cy.get(`[data-test-id="workflow-tags-container"] span.el-tag:nth-child(${n})`),
tagsDropdown: () => cy.getByTestId('workflow-tags-dropdown'), tagsDropdown: () => cy.getByTestId('workflow-tags-dropdown'),