Uploaded March 2024 | Updated September 2026, 1 week ago
In this video, there is some flaky due to the UI updating before the app actually makes the "POST /students" call to save the data. I fix the flake for good by spying on the network call using the cy.intercept command. The starting code is in the repo github.com/bahmutov/flaky-test-cypress in the branch "level7". For more examples and flake exercises, read the blog post glebbahmutov.com/blog/cypress-flaky-tests-exercises For more "cy.intercept" exercises, see my course "Cypress Network Testing Exercises" https://cypress.tips/courses/network-testing
In this video, there is some flaky due to the UI updating before the app actually makes the "POST /students" call to save the data. I fix the flake for good by spying on the network call using the cy.intercept command. The starting code is in the repo github.com/bahmutov/flaky-test-cypress in the branch "level7". For more examples and flake exercises, read the blog post glebbahmutov.com/blog/cypress-flaky-tests-exercises For more "cy.intercept" exercises, see my course "Cypress Network Testing Exercises" https://cypress.tips/courses/network-testing










