From 474eb4baba17263dd2fd2a8e3cd185f2e65fe2cc Mon Sep 17 00:00:00 2001 From: Anthoula Wojczak Date: Thu, 12 Dec 2024 15:48:45 -0600 Subject: [PATCH] update auth dropdown navigation (#253) * update auth dropdown navigation * update auth dropdown navigation spec --- blocks/header/renderAuthDropdown.js | 3 --- cypress/src/tests/e2eTests/events/auth.spec.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/blocks/header/renderAuthDropdown.js b/blocks/header/renderAuthDropdown.js index 6b458a0b9d..24fee542ac 100644 --- a/blocks/header/renderAuthDropdown.js +++ b/blocks/header/renderAuthDropdown.js @@ -32,9 +32,6 @@ export function renderAuthDropdown(navTools) {
diff --git a/cypress/src/tests/e2eTests/events/auth.spec.js b/cypress/src/tests/e2eTests/events/auth.spec.js index 755d7a54f4..ae3143665e 100644 --- a/cypress/src/tests/e2eTests/events/auth.spec.js +++ b/cypress/src/tests/e2eTests/events/auth.spec.js @@ -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')