smoke: remove wait
This commit is contained in:
parent
3cedac620f
commit
9e90207c43
4 changed files with 4 additions and 9 deletions
|
@ -79,7 +79,6 @@ export class QuickOpen {
|
|||
await this.waitForQuickOpenOpened();
|
||||
for (let from = 0; from < index; from++) {
|
||||
await this.spectron.client.keys(['ArrowDown', 'NULL']);
|
||||
this.spectron.wait(3);
|
||||
}
|
||||
await this.spectron.client.keys(['Enter', 'NULL']);
|
||||
await this.waitForQuickOpenClosed();
|
||||
|
|
|
@ -78,8 +78,8 @@ describe('Statusbar', () => {
|
|||
await app.workbench.statusbar.clickOn(StatusBarElement.EOL_STATUS);
|
||||
|
||||
await app.workbench.quickopen.waitForQuickOpenOpened();
|
||||
|
||||
await app.workbench.quickopen.selectQuickOpenElement(1);
|
||||
|
||||
await app.workbench.statusbar.waitForEOL('CRLF');
|
||||
});
|
||||
});
|
|
@ -29,7 +29,7 @@ describe('Data Migration', () => {
|
|||
await app.workbench.editor.waitForTypeInEditor('Untitled-1', textToType);
|
||||
|
||||
await app.stop();
|
||||
await app.wait(.5); // wait until all resources are released (e.g. locked local storage)
|
||||
await new Promise(c => setTimeout(c, 500)); // wait until all resources are released (e.g. locked local storage)
|
||||
// Checking latest version for the restored state
|
||||
|
||||
app = new SpectronApplication(LATEST_PATH);
|
||||
|
@ -58,7 +58,7 @@ describe('Data Migration', () => {
|
|||
await app.client.type(secondTextPart);
|
||||
|
||||
await app.stop();
|
||||
await app.wait(); // wait until all resources are released (e.g. locked local storage)
|
||||
await new Promise(c => setTimeout(c, 1000)); // wait until all resources are released (e.g. locked local storage)
|
||||
|
||||
// Checking latest version for the restored state
|
||||
app = new SpectronApplication(LATEST_PATH);
|
||||
|
|
|
@ -98,7 +98,7 @@ export class SpectronApplication {
|
|||
public async reload(): Promise<any> {
|
||||
await this.workbench.quickopen.runCommand('Reload Window');
|
||||
// TODO @sandy: Find a proper condition to wait for reload
|
||||
await this.wait(.5);
|
||||
await new Promise(c => setTimeout(c, 500));
|
||||
await this.checkWindowReady();
|
||||
}
|
||||
|
||||
|
@ -109,10 +109,6 @@ export class SpectronApplication {
|
|||
}
|
||||
}
|
||||
|
||||
public wait(seconds: number = 1): Promise<any> {
|
||||
return new Promise(resolve => setTimeout(resolve, seconds * 1000));
|
||||
}
|
||||
|
||||
private async startApplication(testSuiteName: string, codeArgs: string[] = [], env = process.env): Promise<any> {
|
||||
|
||||
let args: string[] = [];
|
||||
|
|
Loading…
Reference in a new issue