From acc0122e8f4ef6970916483204847e696f87520d Mon Sep 17 00:00:00 2001 From: Lewis Sanchez <87730006+lewis-sanchez@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:26:21 -0700 Subject: [PATCH] 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 --- test/automation/src/sql/notebook.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/automation/src/sql/notebook.ts b/test/automation/src/sql/notebook.ts index 67369efb9b..7696b7c3fc 100644 --- a/test/automation/src/sql/notebook.ts +++ b/test/automation/src/sql/notebook.ts @@ -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 { - 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'); }