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

Cleanup for Cypress Tests #417

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Cleanup for Cypress Tests #417

merged 1 commit into from
Apr 5, 2024

Conversation

coreyogburn
Copy link
Contributor

The way the visual glitch was fixed used an async function. Cypress and async functions don't always play well together, occasionally causing the function to be called twice. Handling the async with the Promise approach solves the visual glitch while allowing cypress to behave more predictably.

Some casing changes in the UI tripped up the backend, the backend now normalizes the data it assumed was normalized.

Moved the check for 206 when saving a detection down so we are either showing the warning or the successful popup, not both.

The way the visual glitch was fixed used an async function. Cypress and async functions don't always play well together, occasionally causing the function to be called twice. Handling the async with the Promise approach solves the visual glitch while allowing cypress to behave more predictably.

Some casing changes in the UI tripped up the backend, the backend now normalizes the data it assumed was normalized.

Moved the check for 206 when saving a detection down so we are either showing the warning or the successful popup, not both.
@coreyogburn coreyogburn merged commit f768a52 into 2.4/dev Apr 5, 2024
3 checks passed
@coreyogburn coreyogburn deleted the cogburn/test-fixes branch April 5, 2024 20:20
@github-actions github-actions bot locked and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants