Cypress Command: watchForVsCodeLoaded
Summary
cy.watchForVsCodeLoaded()
- For labs that use the vscode editor layout, start watching for vscode to load in the background so that "Copy to Editor" blocks are not run before vscode is ready Parameters
none
Example
it('starts the lab', () => {
cy.startLab();
cy.watchForVsCodeLoaded();
...
});
Waiting
This command does not wait, but registers event handlers to notice when VS Code is ready for interactions by copy-to-editor commands.
Verification
This command does not verify anything.
Related
- Alternatively, call performAllLabActions to test lab that is completely instruction-guided
- This must be called after startLab
- This must be called before copyToEditor or copyToEditorContaining