Skip to content

Commit 795dd70

Browse files
committed
Added wait before testing edit
1 parent 1493e52 commit 795dd70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cypress/integration/user_story.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ describe('Test new User Registration Workflow', () => {
9292
})
9393

9494
it('Allows user to edit the story created by them', () => {
95-
cy.get('[data-cy=btn-edit]', { timeout: 1000 }).click()
95+
cy.wait(1500)
9696

97-
cy.get('[data-cy=edit-description]', { timeout: 1000 }).type(editedDescription)
97+
cy.get('[data-cy=btn-edit]').click()
98+
99+
cy.get('[data-cy=edit-description]').type(editedDescription)
98100

99101
cy.get('[data-cy=btn-save]').click()
100102

0 commit comments

Comments
 (0)