mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Notebook smoke test fixes (#15178)
* Notebook smoke test fixes * Undo delay fixes
This commit is contained in:
@@ -37,9 +37,9 @@ export class Notebook {
|
||||
|
||||
async addCell(cellType: 'markdown' | 'code'): Promise<void> {
|
||||
if (cellType === 'markdown') {
|
||||
await this.code.dispatchKeybinding(winOrCtrl + '+shift+t');
|
||||
await this.code.dispatchKeybinding('ctrl+shift+t');
|
||||
} else {
|
||||
await this.code.dispatchKeybinding(winOrCtrl + '+shift+c');
|
||||
await this.code.dispatchKeybinding('ctrl+shift+c');
|
||||
}
|
||||
|
||||
await this.code.waitForElement('.notebook-cell.active');
|
||||
@@ -58,7 +58,7 @@ export class Notebook {
|
||||
}
|
||||
|
||||
async runAllCells(): Promise<void> {
|
||||
await this.code.dispatchKeybinding(winOrCtrl + '+shift+F5');
|
||||
await this.code.dispatchKeybinding('ctrl+shift+F5');
|
||||
}
|
||||
|
||||
async clearResults(): Promise<void> {
|
||||
|
||||
@@ -13,6 +13,7 @@ export function setup() {
|
||||
await app.workbench.sqlNotebook.newUntitledNotebook();
|
||||
await app.workbench.sqlNotebook.addCell('code');
|
||||
await app.workbench.sqlNotebook.waitForTypeInEditor('print("Hello world!")');
|
||||
await app.workbench.sqlNotebook.waitForKernel('SQL');
|
||||
|
||||
await app.workbench.sqlNotebook.changeKernel('Python 3');
|
||||
await app.workbench.configurePythonDialog.waitForConfigurePythonDialog();
|
||||
|
||||
Reference in New Issue
Block a user