Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cypress test cleanup deleting same config multiple times #444

Open
qreshi opened this issue May 10, 2022 · 0 comments
Open

[BUG] Cypress test cleanup deleting same config multiple times #444

qreshi opened this issue May 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@qreshi
Copy link
Contributor

qreshi commented May 10, 2022

What is the bug?
The Cypress tests were refactored in #442 and the tests were updated to clear existing configs in the before() hook. For some reason, the cleanup being done in "Test channel details" is fairly consistently trying to delete the same config multiple times causing 404s.

This could be some strange behavior from the last test in the spec file since the other tests don't have this problem. The before() hook for the problematic tests has been commented out for the time being while the root cause is found and can be added back in at that time.

A few things that were observed:

  1. Tested adding a baseUrl since this Cypress issue mentioned that cy.visit() could cause the before() hook to be invoked twice, this didn't make a difference so is likely unrelated here
  2. Tried to log within the deleteAllConfigs command and sometimes the same config is logged twice implying it's executing a single loop twice, however, sometimes the log only appears once but the request is made twice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant