Corrects keyboard shortcuts for Linux web smoke tests (#17301)

* Corrects keyboard shortcuts for linux

* Changed python to match the one listed in docker/Dockerfile

* Revert "Changed python to match the one listed in docker/Dockerfile"

This reverts commit 683c226eb600bc89b449f258d463d2a6b14aebe6.

* Adjusts retry count for dialog elements to close.

* Code clean up

* Revert "Adjusts retry count for dialog elements to close."

This reverts commit 64a8bf48fa72eb26830aeaa55721c7ff846d131e.

* Code cleanup

* Adjusts key binding
This commit is contained in:
Lewis Sanchez
2021-10-11 10:26:21 -07:00
committed by GitHub
parent f5331e3d69
commit acc0122e8f

View File

@@ -9,7 +9,7 @@ import { QuickInput } from '../quickinput';
import { Editors } from '../editors';
import { IElement } from '..';
const winOrCtrl = process.platform === 'darwin' ? 'ctrl' : 'win';
const winOrCtrl = process.platform === 'win32' ? 'win' : 'ctrl';
export class Notebook {
@@ -32,7 +32,7 @@ export class Notebook {
}
async newUntitledNotebook(): Promise<void> {
await this.code.dispatchKeybinding(winOrCtrl + '+alt+n');
await this.code.dispatchKeybinding(winOrCtrl + '+Alt+n');
await this.editors.waitForActiveTab(`Notebook-0`);
await this.code.waitForElement('.notebookEditor');
}