Archived
1
0

fix(testing): reduce flakiness in extension e2e tests (#5481)

This commit is contained in:
Joe Previte
2022-08-22 12:47:36 -07:00
committed by GitHub
parent 33ee184ed7
commit 8352a22e33
4 changed files with 17 additions and 4 deletions

View File

@ -296,6 +296,16 @@ export class CodeServerPage {
return visible
}
/**
* Checks if the test extension loaded
*/
async waitForTestExtensionLoaded(): Promise<void> {
const selector = "text=test extension loaded"
this.codeServer.logger.debug("Waiting for test extension to load...")
await this.page.waitForSelector(selector)
}
/**
* Focuses the integrated terminal by navigating through the command palette.
*