mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fixing smoke tests in import where the status bar text was not found. (#18126)
This commit is contained in:
@@ -35,9 +35,9 @@ export class StatusBar {
|
|||||||
return this.code.waitForTextContent(this.getSelector(StatusBarElement.EOL_STATUS), eol);
|
return this.code.waitForTextContent(this.getSelector(StatusBarElement.EOL_STATUS), eol);
|
||||||
}
|
}
|
||||||
|
|
||||||
// {{SQL CARBON EDIT}} Add retryCount
|
// {{SQL CARBON EDIT}} Add retryCount, selecting status bar text with id instead of title.
|
||||||
async waitForStatusbarText(title: string, text: string, retryCount?: number): Promise<void> {
|
async waitForStatusbarText(id: string, text: string, retryCount?: number): Promise<void> {
|
||||||
await this.code.waitForTextContent(`${this.mainSelector} .statusbar-item[title="${title}"]`, text, undefined, retryCount);
|
await this.code.waitForTextContent(`${this.mainSelector} .statusbar-item[id="${id}"]`, text, undefined, retryCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
private getSelector(element: StatusBarElement): string {
|
private getSelector(element: StatusBarElement): string {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export function setup(opts: minimist.ParsedArgs) {
|
|||||||
const app = this.app as Application;
|
const app = this.app as Application;
|
||||||
await app.workbench.quickaccess.runCommand('Flat File Import: Import Wizard');
|
await app.workbench.quickaccess.runCommand('Flat File Import: Import Wizard');
|
||||||
// Wait for the service to be downloaded and installed. This can take a while so set timeout to 5min (retryInterval default is 100ms)
|
// Wait for the service to be downloaded and installed. This can take a while so set timeout to 5min (retryInterval default is 100ms)
|
||||||
await app.workbench.statusbar.waitForStatusbarText('', 'Flat File Import Service Started', 5 * 60 * 10);
|
await app.workbench.statusbar.waitForStatusbarText('Microsoft.import', 'Flat File Import Service Started', 5 * 60 * 10);
|
||||||
await app.workbench.connectionDialog.waitForConnectionDialog();
|
await app.workbench.connectionDialog.waitForConnectionDialog();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user