Skip to content

Commit

Permalink
Merge pull request #9 from newfold-labs/update/test
Browse files Browse the repository at this point in the history
fix cypress test that was selecting the non-global ctb container
  • Loading branch information
circlecube authored Oct 17, 2023
2 parents b8583e4 + 5a6f8b2 commit d5aab07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cypress/integration/global-ctb.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Click to buy', function () {
cy.get('body').should('have.class', 'noscroll');

// check for modal should be.visible
cy.get('#nfd-ctb-container').should('exist');
cy.get('#nfd-global-ctb-container').should('exist');
cy.get('.global-ctb-modal-content')
.scrollIntoView()
.should('be.visible');
Expand All @@ -68,7 +68,7 @@ describe('Click to buy', function () {

// confirm modal is closed
cy.get('body').should('not.have.class', 'noscroll');
cy.get('#nfd-ctb-container').should('have.attr', 'aria-hidden').and('equal', 'true');
cy.get('#nfd-global-ctb-container').should('have.attr', 'aria-hidden').and('equal', 'true');
cy.get('.global-ctb-modal-content').should('not.be.visible');

});
Expand All @@ -92,7 +92,7 @@ describe('Click to buy', function () {

// confirm modal is closed
cy.get('body').should('not.have.class', 'noscroll');
cy.get('#nfd-ctb-container').should('have.attr', 'aria-hidden').and('equal', 'true');
cy.get('#nfd-global-ctb-container').should('have.attr', 'aria-hidden').and('equal', 'true');
cy.get('.global-ctb-modal-content').should('not.be.visible');

});
Expand Down

0 comments on commit d5aab07

Please sign in to comment.