Skip to content

Commit

Permalink
update auth dropdown navigation spec
Browse files Browse the repository at this point in the history
  • Loading branch information
anthoula committed Dec 12, 2024
1 parent d266840 commit 563687b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/src/tests/e2eTests/events/auth.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ it('has shopperId as logged-in when authenticated, and guest when not', () => {

// 4. Logs out / deletes customer and checks that shopperContext is set to guest
cy.get('.nav-dropdown-button').contains('Hi, John').click();
cy.get('#nav > div.section.nav-tools > div.dropdown-wrapper.nav-tools-wrapper > div > ul > li:nth-child(3) > button').click();
cy.get('#nav > div.section.nav-tools > div.dropdown-wrapper.nav-tools-wrapper > div > ul > li:nth-child(2) > button').click();
cy.get('.auth-sign-in-form__button--submit');
cy.wait(1000); // TODO: find better way to wait for auth acdl push to have occurred after logout click.
cy.waitForResource('commerce-events-collector.js')
Expand Down

0 comments on commit 563687b

Please sign in to comment.