-
Notifications
You must be signed in to change notification settings - Fork 5.9k
fix(testing): reduce flakiness in extension e2e tests #5481
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
Conversation
ef74ce8
to
acb6531
Compare
- add new info message when extension loads - prefix vscode_proxy_uri message with "proxyUri:" to make it easier to find in e2e test - activate extension onStartupFinished
Codecov Report
@@ Coverage Diff @@
## main #5481 +/- ##
=======================================
Coverage 72.44% 72.44%
=======================================
Files 30 30
Lines 1673 1673
Branches 366 366
=======================================
Hits 1212 1212
Misses 398 398
Partials 63 63 Continue to review full report at Codecov.
|
This adds two new methods to assist with testing the test extension in our e2e tests, namely these two methods: - isTestExtensionLoaded - reloadUntilTestExtensionIsLoaded Sometimes code-server loads without loading the test extension. These methods allow us to reload and guarantee it's loaded.
This modifies the test extension using our new methods to reduce flakiness by ensuring the test extension has loaded before proceeding with the test.
acb6531
to
1be591c
Compare
test/e2e/models/CodeServer.ts
Outdated
await this.page.waitForLoadState("load") | ||
// Give it an extra second just in case it's feeling extra slow | ||
await this.page.waitForTimeout(1000) |
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.
We do the same in reloadUntilEditorIsReady
so I wonder if we can omit?
Great sleuthing on the flakiness!! |
Co-authored-by: Asher <ash@coder.com>
Co-authored-by: Asher <ash@coder.com>
This PR modifies our e2e test to reduce flakiness in the extension tests.
Fixes #5472