Skip to content

Commit

Permalink
Proposals spec selector specificity fix
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Nov 15, 2024
1 parent 89329d0 commit 979218b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cypress/integration/group-proposals.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ describe('Proposals - Add members', () => {
// https://docs.cypress.io/guides/tooling/visual-testing.html#Functional-vs-visual-testing#article
getProposalItems().should('have.length', 5)
cy.getByDT('openAllProposals').click()
cy.get('[data-test="modal"] > .c-container .c-title').should('contain', 'Archived proposals')
cy.getByDT('modal').within(() => {
cy.get('[data-test="modal"][aria-label="All proposals"] > .c-container .c-title').should('contain', 'Archived proposals')
cy.get('[data-test="modal"][aria-label="All proposals"]').within(() => {
// NOTE: this is to wait until all of the 5 proposals are loaded inside the modal
cy.get('.c-container > .c-header-info .has-text-1').should('contain', '5 proposals')

Expand Down

0 comments on commit 979218b

Please sign in to comment.