Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update auth dropdown navigation #253

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading