Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
prevent race
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jun 25, 2019
1 parent dc84222 commit 42fd464
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/integration/profile-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ describe('Profile', () => {
.clear()
.type('my new bio')
cy.get('form').submit()
cy.location('pathname').should('equal', '/')

// saved bio should be displayed
cy.get('[data-cy=profile]').click()
cy.location('pathname').should('equal', '/@testuser')
cy.get('[data-cy=user-info]')
.should('be.visible')
.find('[data-cy=bio]')
Expand Down

0 comments on commit 42fd464

Please sign in to comment.