Page not refreshed after POST #31635
Unanswered
Vrezerino
asked this question in
Questions and Help
Replies: 1 comment
-
By the way there is a tendency for most all of the tests to work at first run, but only after re-running Cypress after some time, maybe ten minutes. Edit: I ditched Cypress for Playwright which is much more reliable, but will keep this discussion open for others. |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
So my project has one post form which appears on both /[board] and /board/[post]. The former is for thread creation and latter for replying. Testing the former always yields success while reply tests fails 95% of the time, locally and in CI. Cypress clear functions, window refreshes, forcing DOM update with injections, none of those work consistently if at all. Any ideas? Those Cypress env variables are not the problem, they're consistent.
In postForm I have router.refresh() on status code being 201 (Successful Creation).
spec.cy.ts.mp4
Beta Was this translation helpful? Give feedback.
All reactions