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
Fix blob viewer Percy flake #14694
Fix blob viewer Percy flake #14694
Conversation
Codecov Report
@@ Coverage Diff @@
## main #14694 +/- ##
=======================================
Coverage 52.21% 52.21%
=======================================
Files 1556 1556
Lines 79150 79150
Branches 6947 7016 +69
=======================================
+ Hits 41330 41331 +1
+ Misses 34084 34081 -3
- Partials 3736 3738 +2
|
I just ran into this flakiness too and filed #14939 What do you mean with this?
|
I was under the impression that |
await driver.page.evaluate(() => localStorage.removeItem('hover-count')) | ||
await driver.page.reload() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a band-aid fix that only applies to this specific test. The root cause here seems to be that a previous test primes the localStorage so that the alert is shown on the next test. Tests should be isolated. Instead of adding this code to the test, we should be using beforeEach()
to clear localStorage entirely before each test. Ideally even in createIntegrationTestContext()
if there are no side effects of that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm working on a better solution in #15037 that works locally, but still results in the browser extension alert appearing in Percy. Since this is getting to be really annoying, and this PR should fix this issue for the only test it's a problem for right now, should we merge this for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
I saw a Percy snapshot for 'shows a hover overlay from a hover provider' in which InstallBrowserExtensionAlert was displayed. I'm not sure how that happened (could it have ran after the 'browser extension discoverability' block?).
This will be a short-lived fix, since we'll be able to disable the discoverability features in
commonWebGraphQlResults
soon.