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

utils & dev: Add fix for tests that fail due to having showLoadingPrompt set to true #1807

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

MicroFish91
Copy link
Contributor

@MicroFish91 MicroFish91 commented Oct 29, 2024

We were seeing tests failing due to having showLoadingPrompt set to true. It appears that the loading pick's onDidHide was being triggered when running multiple tests back-to-back, which would then cause a cancel and a premature wizard exit.

This new logic would add an isTesting boolean that the wizard can check internally so that we can prevent an early cancel from being issued. This boolean would be automatically set each time we create a test action context.

@MicroFish91 MicroFish91 changed the title utils & dev: Add fix for tests that fail due to having showLoadingPrompt set utils & dev: Add fix for tests that fail due to having showLoadingPrompt set to true Oct 29, 2024
@MicroFish91 MicroFish91 marked this pull request as ready for review October 29, 2024 21:22
@MicroFish91 MicroFish91 requested a review from a team as a code owner October 29, 2024 21:22
Copy link
Member

@alexweininger alexweininger left a comment

Choose a reason for hiding this comment

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

Can you add some documentation to the property you added just to give some context about why it's needed and what it does?

@MicroFish91 MicroFish91 merged commit fb6173d into main Oct 30, 2024
5 checks passed
@MicroFish91 MicroFish91 deleted the mwf/dark-lavender branch October 30, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants