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

Properly log errors that are presented as alerts #1529

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

MetRonnie
Copy link
Member

This makes it easier to view the stack trace for caught errors

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Tests are not needed
  • No CHANGES.md entry included (invisible to users)

@MetRonnie MetRonnie added this to the 2.2.0 milestone Oct 25, 2023
@MetRonnie MetRonnie self-assigned this Oct 25, 2023
import Alert from '@/model/Alert.model'
import { Alert } from '@/model/Alert.model'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-functional change. For some reason the type recognition in VSCode wasn't working for a default export. So that's why I've changed it

@@ -106,6 +106,8 @@ describe('User Profile', () => {
})
// Close menu:
.get('noscript').click({ force: true })
.get('@mutationMenu')
.should('not.be.visible')
Copy link
Member Author

@MetRonnie MetRonnie Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attempt at fixing flaky test failing on FF with

ResizeObserver loop completed with undelivered notifications.

Based on https://stackoverflow.com/a/76784540/3217306

ResizeObserver is often used to provide animation, so once you find the line that causes the error, add a visibility check to allow the page to settle before testing

@oliver-sanders oliver-sanders merged commit c9b03db into cylc:master Oct 26, 2023
8 checks passed
@MetRonnie MetRonnie deleted the alert branch October 26, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants