mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
click first element in quick input result list (#13954)
This commit is contained in:
@@ -22,8 +22,7 @@ export class Notebook {
|
|||||||
async openFile(fileName: string): Promise<void> {
|
async openFile(fileName: string): Promise<void> {
|
||||||
await this.quickAccess.openQuickAccess(fileName);
|
await this.quickAccess.openQuickAccess(fileName);
|
||||||
await this.quickInput.waitForQuickInputElements(names => names[0] === fileName);
|
await this.quickInput.waitForQuickInputElements(names => names[0] === fileName);
|
||||||
await this.code.waitForActiveElement('.quick-input-widget .quick-input-box input');
|
await this.code.waitAndClick('.quick-input-widget .quick-input-list .monaco-list-row');
|
||||||
await this.code.dispatchKeybinding('enter');
|
|
||||||
await this.editors.waitForActiveTab(fileName);
|
await this.editors.waitForActiveTab(fileName);
|
||||||
await this.code.waitForElement('.notebookEditor');
|
await this.code.waitForElement('.notebookEditor');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user