Check pool load results and wait for pop-ups to clear#2602
Merged
Conversation
Contributor
|
The click to dismiss idea is great. We'll do that. |
Contributor
Author
|
I've opened #2605 to track the dismiss approach. |
jameskerr
approved these changes
Dec 1, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As observed in a failed test run at https://github.com/brimdata/brim/actions/runs/3586451129, the e2e test that was recently enhanced in #2600 could fail because the loads in quick succession may leave multiple "Load Successful" pop-ups on the screen at once. The failure looked like:
I looked at the strictness docs and did a one-off test to confirm that changing it to
await this.mainWin.getByText("Load Successful").first().waitFor()did indeed make the test pass again. However, that page also cautions that this approach isn't recommended, and indeed watching the tests run drove this home: The potentially stacked "Load Successful" and/or "Load error" pop-ups from tests that are running in quick succession does indeed seem to make it hazardous to rely on finding any single instance of a pop-up as evidence that a particular test succeeded or failed.In this PR I've changed the wider test so that it waits for each pop-up to disappear before proceeding with the next test, hence no stacking. This does indeed make everything pass, though with the caveat that it slows things down:
Maybe there's a way to speed it up again, though? One thought would be to make the pop-ups click-to-dismiss. That way
createPool()itself could not only wait on the expected pop-up to appear but could also click to hide it before returning, which could potentially improve the reliability of all the tests that use it.@jameskerr: Any thoughts?