Notebook smoke test fixes (#15178)

* Notebook smoke test fixes

* Undo delay fixes
This commit is contained in:
Charles Gagnon
2021-04-19 14:26:47 -07:00
committed by GitHub
parent 2f04adb510
commit cd6f584ed1
2 changed files with 4 additions and 3 deletions

View File

@@ -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> {

View File

@@ -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();