Skip to content

Commit

Permalink
update Cypress command toggleUserMenuOn to fit the new Avatar component
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGamma committed Nov 24, 2019
1 parent 6a9752b commit 335acea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ const attachCustomCommands = (Cypress, fb: typeof firebase) => {
},
})
return firestore.updateDocument(collectionName, docId, docData)

},
)

Expand Down Expand Up @@ -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()
})

Expand Down

0 comments on commit 335acea

Please sign in to comment.