mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -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);
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}} Add retryCount
|
||||
async waitForStatusbarText(title: string, text: string, retryCount?: number): Promise<void> {
|
||||
await this.code.waitForTextContent(`${this.mainSelector} .statusbar-item[title="${title}"]`, text, undefined, retryCount);
|
||||
// {{SQL CARBON EDIT}} Add retryCount, selecting status bar text with id instead of title.
|
||||
async waitForStatusbarText(id: string, text: string, retryCount?: number): Promise<void> {
|
||||
await this.code.waitForTextContent(`${this.mainSelector} .statusbar-item[id="${id}"]`, text, undefined, retryCount);
|
||||
}
|
||||
|
||||
private getSelector(element: StatusBarElement): string {
|
||||
|
||||
Reference in New Issue
Block a user