Some Kanban tests are flaky #1877

Closed
opened 2021-11-24 11:02:13 +00:00 by dpschen · 8 comments
Member

I see these tests fail from time to time and have to restart the CI to make them pass.

I see these tests fail from time to time and have to restart the CI to make them pass.
dpschen added the
kind/bug
label 2021-11-24 11:02:13 +00:00
Owner

That's kind of a known issue with cypress. I think there's a workaround command in there somewhere.

That's kind of a known issue with cypress. I think there's a workaround command in there somewhere.
Author
Member

You mean the getSettled command?

You mean the `getSettled` command?
Owner

No I mean the This element is detached from the dom issue

No I mean the `This element is detached from the dom` issue
Author
Member

Ahh and what do you mean then by: [...] in there somewhere

Ahh and what do you mean then by: <cite>[...] in there somewhere</cite>
Owner

I think there's a command or some other workaround in the cypress commands (on my phone right now, can't really search)

I've ranted on twitter about this before and got a few suggestions out of it: https://twitter.com/kolaente/status/1399254966343176192

Maybe those are worth a re-visit.

https://kolaente.dev/vikunja/frontend/src/branch/main/cypress/support/commands.js#L10

I think there's a command or some other workaround in the cypress commands (on my phone right now, can't really search) I've ranted on twitter about this before and got a few suggestions out of it: https://twitter.com/kolaente/status/1399254966343176192 Maybe those are worth a re-visit. https://kolaente.dev/vikunja/frontend/src/branch/main/cypress/support/commands.js#L10
Author
Member

I also saw that the new create-vue comes with cypress support built in. Maybe there's something we can learn.. Will check that.

I also saw that the new [create-vue](https://github.com/vuejs/create-vue) comes with cypress support built in. Maybe there's something we can learn.. Will check that.
Author
Member

I think I could make these flaky tests working via getSettled in vikunja/frontend#816

That solves the issue for me. Tests need to work and not to be perfect =)

I think I could make these flaky tests working via `getSettled` in https://kolaente.dev/vikunja/frontend/pulls/816 That solves the issue for me. Tests need to work and not to be perfect =)
Owner

Tests need to work and not to be perfect =)

Oh definitely :)

> Tests need to work and not to be perfect =) Oh definitely :)
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1877
No description provided.