Skip to content

Commit 57464a8

Browse files
committed
fix: increasing the waiting time for clicking buttons
1 parent f01f621 commit 57464a8

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

cypress/e2e/courses/lesson.cy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ describe('Course Workflow', () => {
1515
cy.navigateToBuild('Rust_State_Machine')
1616
cy.accessLesson()
1717

18+
cy.wait(4000)
1819
cy.submitLesson({ text: submissionText })
1920
cy.nextLesson()
2021

22+
cy.wait(4000)
2123
cy.submitLesson({ filePath: 'public/assets/img/screenshot-home-build.png' })
2224
cy.validateModalContent(
2325
'Networking is everything, how about sharing your progress with your friends on Twitter?'

cypress/support/commands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Cypress.Commands.add('submitLesson', ({ text, filePath }) => {
4848

4949
if (filePath) {
5050
cy.get('#load-file').selectFile(filePath)
51+
cy.wait(4000)
5152
cy.get('#upload-file').click()
5253
} else if (text) {
5354
cy.get('.mt-2 > .z-10').type(text)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"seed": "node scripts/seedFirestore.js",
1010
"lint": "eslint .",
1111
"lint:fix": "eslint . --fix",
12-
"emulator:cypress:": "cypress open",
12+
"emulator:cypress": "cypress open",
1313
"test:cypress": "cypress run"
1414
},
1515
"dependencies": {

0 commit comments

Comments
 (0)