From 335acea04737759fa8d93d8f24dbdf824cc2369c Mon Sep 17 00:00:00 2001 From: Benjamin Gammaire Date: Sun, 24 Nov 2019 14:14:24 +0100 Subject: [PATCH] update Cypress command toggleUserMenuOn to fit the new Avatar component --- cypress/support/commands.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index b85fa1b3ea..2cdedde16b 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -143,7 +143,6 @@ const attachCustomCommands = (Cypress, fb: typeof firebase) => { }, }) return firestore.updateDocument(collectionName, docId, docData) - }, ) @@ -194,9 +193,7 @@ const attachCustomCommands = (Cypress, fb: typeof firebase) => { Cypress.Commands.add('toggleUserMenuOn', () => { Cypress.log({ displayName: 'OPEN_USER_MENU' }) - cy.get('[data-cy=user-menu]') - .find('path') - .should('be.exist') + cy.get('[data-cy=user-menu]').should('be.exist') cy.get('[data-cy=user-menu]').click() })