mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
smoke - wait for tab becoming dirty before exit
This commit is contained in:
@@ -47,11 +47,13 @@ export function setup(opts: ParsedArgs, testDataPath: string) {
|
|||||||
const untitled = 'Untitled-1';
|
const untitled = 'Untitled-1';
|
||||||
const textToTypeInUntitled = 'Hello from Untitled';
|
const textToTypeInUntitled = 'Hello from Untitled';
|
||||||
await app.workbench.editor.waitForTypeInEditor(untitled, textToTypeInUntitled);
|
await app.workbench.editor.waitForTypeInEditor(untitled, textToTypeInUntitled);
|
||||||
|
await app.workbench.editors.waitForTab(untitled, true);
|
||||||
|
|
||||||
const readmeMd = 'readme.md';
|
const readmeMd = 'readme.md';
|
||||||
const textToType = 'Hello, Code';
|
const textToType = 'Hello, Code';
|
||||||
await app.workbench.quickaccess.openFile(readmeMd);
|
await app.workbench.quickaccess.openFile(readmeMd);
|
||||||
await app.workbench.editor.waitForTypeInEditor(readmeMd, textToType);
|
await app.workbench.editor.waitForTypeInEditor(readmeMd, textToType);
|
||||||
|
await app.workbench.editors.waitForTab(readmeMd, true);
|
||||||
|
|
||||||
await app.restart();
|
await app.restart();
|
||||||
|
|
||||||
@@ -146,11 +148,13 @@ export function setup(opts: ParsedArgs, testDataPath: string) {
|
|||||||
const untitled = 'Untitled-1';
|
const untitled = 'Untitled-1';
|
||||||
const textToTypeInUntitled = 'Hello from Untitled';
|
const textToTypeInUntitled = 'Hello from Untitled';
|
||||||
await stableApp.workbench.editor.waitForTypeInEditor(untitled, textToTypeInUntitled);
|
await stableApp.workbench.editor.waitForTypeInEditor(untitled, textToTypeInUntitled);
|
||||||
|
await stableApp.workbench.editors.waitForTab(untitled, true);
|
||||||
|
|
||||||
const readmeMd = 'readme.md';
|
const readmeMd = 'readme.md';
|
||||||
const textToType = 'Hello, Code';
|
const textToType = 'Hello, Code';
|
||||||
await stableApp.workbench.quickaccess.openFile(readmeMd);
|
await stableApp.workbench.quickaccess.openFile(readmeMd);
|
||||||
await stableApp.workbench.editor.waitForTypeInEditor(readmeMd, textToType);
|
await stableApp.workbench.editor.waitForTypeInEditor(readmeMd, textToType);
|
||||||
|
await stableApp.workbench.editors.waitForTab(readmeMd, true);
|
||||||
|
|
||||||
await stableApp.stop();
|
await stableApp.stop();
|
||||||
stableApp = undefined;
|
stableApp = undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user