Skip to content

Commit f6443ca

Browse files
committed
Added default timeout
1 parent 0244611 commit f6443ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cypress.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"testStoryProduct": "EOS Icons",
99
"testCategory": "Documentation"
1010
},
11+
"defaultCommandTimeout": 15000,
1112
"testFiles": [
1213
"user_story.spec.js",
1314
"test_filters.spec.js"

cypress/integration/user_story.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe('Test new User Registration Workflow', () => {
9898
})
9999

100100
it('Allows user to edit the story created by them', () => {
101-
cy.get('[data-cy=btn-edit]', { timeout: 1000 }).contains('Edit').click()
101+
cy.get('[data-cy=btn-edit]').contains('Edit').click()
102102

103103
cy.get('[data-cy=edit-description]').type(editedDescription)
104104

@@ -110,7 +110,7 @@ describe('Test new User Registration Workflow', () => {
110110
it('Allows user to comment on a story', () => {
111111
cy.get('[data-cy=nav-eos-logo]').should('have.attr', 'href', '/').click()
112112

113-
cy.get('[data-cy=stories]', { timeout: 1000 }).contains(testStory.title).click()
113+
cy.get('[data-cy=stories]').contains(testStory.title).click()
114114

115115
cy.get('[data-cy=comment-input]').type(testComment)
116116

0 commit comments

Comments
 (0)