Link Search Menu Expand Document

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.startScenario();
  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.