escape any open wizards after each test (#16938)

This commit is contained in:
Lucy Zhang
2021-08-30 17:56:28 -04:00
committed by GitHub
parent 76e01fee60
commit 05d8ad4811

View File

@@ -96,7 +96,11 @@ export function setup() {
const name = this.currentTest!.fullTitle().replace(/[^a-z0-9\-]/ig, '_');
await app.captureScreenshot(`${name} (screenshot before revertAndCloseActiveEditor action)`);
}
await app.workbench.quickaccess.runCommand('workbench.action.revertAndCloseActiveEditor');
// Close any open wizards
await app.code.dispatchKeybinding('escape');
});
describe('Notebook Toolbar Actions', async () => {