mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 01:25:38 -05:00
wait for kernel change before running cell (#12949)
This commit is contained in:
@@ -46,6 +46,10 @@ export class Notebook {
|
||||
await this.toolbar.changeKernel(kernel);
|
||||
}
|
||||
|
||||
async waitForKernel(kernel: string): Promise<void> {
|
||||
await this.toolbar.waitForKernel(kernel);
|
||||
}
|
||||
|
||||
async runActiveCell(): Promise<void> {
|
||||
await this.code.dispatchKeybinding('F5');
|
||||
}
|
||||
@@ -86,4 +90,9 @@ export class NotebookToolbar {
|
||||
await this.code.waitForSetValue(kernelDropdown, kernel);
|
||||
await this.code.dispatchKeybinding('enter');
|
||||
}
|
||||
|
||||
async waitForKernel(kernel: string): Promise<void> {
|
||||
const kernelDropdownValue = `${NotebookToolbar.toolbarSelector} select[id="kernel-dropdown"][title="${kernel}"]`;
|
||||
await this.code.waitForElement(kernelDropdownValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user