mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 17:22:55 -05:00
Add Import smoke test (#15111)
* Add smoke test * Add wait for service * Also revert liveshare * fixes * Use custom extensions dir * fix * compile extensions * Use build extensions dir * test break * revert * revert yarn.lock * Add comment * Add comments
This commit is contained in:
@@ -282,14 +282,15 @@ export class Code {
|
||||
await this.driver.exitApplication();
|
||||
}
|
||||
|
||||
async waitForTextContent(selector: string, textContent?: string, accept?: (result: string) => boolean): Promise<string> {
|
||||
async waitForTextContent(selector: string, textContent?: string, accept?: (result: string) => boolean, retryCount?: number): Promise<string> { // {{SQL CARBON EDIT}} Add retryCount
|
||||
const windowId = await this.getActiveWindowId();
|
||||
accept = accept || (result => textContent !== undefined ? textContent === result : !!result);
|
||||
|
||||
return await poll(
|
||||
() => this.driver.getElements(windowId, selector).then(els => els.length > 0 ? Promise.resolve(els[0].textContent) : Promise.reject(new Error('Element not found for textContent'))),
|
||||
s => accept!(typeof s === 'string' ? s : ''),
|
||||
`get text content '${selector}'`
|
||||
`get text content '${selector}'`,
|
||||
retryCount // {{SQL CARBON EDIT}} Add retryCount
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user