test: Fix flaky tags tests (no-changelog) (#11746)

This commit is contained in:
Mutasem Aldmour 2024-11-14 20:02:06 +01:00 committed by GitHub
parent 76262ef899
commit f4ca4b792f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'),