Skip to content

Commit

Permalink
update auth dropdown navigation (#253)
Browse files Browse the repository at this point in the history
* update auth dropdown navigation

* update auth dropdown navigation spec
  • Loading branch information
anthoula authored Dec 12, 2024
1 parent e43b491 commit 474eb4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions blocks/header/renderAuthDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ export function renderAuthDropdown(navTools) {
<div id="auth-dropin-container"></div>
<ul class="authenticated-user-menu">
<li><a href="/customer/account">My Account</a></li>
<li>
<a href="/products/hollister-backyard-sweatshirt/MH05">Product page</a>
</li>
<li><button>Logout</button></li>
</ul>
</div>
Expand Down
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 474eb4b

Please sign in to comment.