From 393aaa408b2f1f56549c4654368c6144a2c9f2ad Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Wed, 8 Apr 2020 17:44:45 +0200 Subject: [PATCH] Fix #94665 --- test/automation/src/keybindings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/automation/src/keybindings.ts b/test/automation/src/keybindings.ts index 0e8739dd04c..abd0ccf9055 100644 --- a/test/automation/src/keybindings.ts +++ b/test/automation/src/keybindings.ts @@ -11,7 +11,7 @@ export class KeybindingsEditor { constructor(private code: Code) { } - async updateKeybinding(command: string, keybinding: string, ariaLabel: string): Promise { + async updateKeybinding(command: string, keybinding: string, title: string): Promise { if (process.platform === 'darwin') { await this.code.dispatchKeybinding('cmd+k cmd+s'); } else { @@ -29,6 +29,6 @@ export class KeybindingsEditor { await this.code.dispatchKeybinding(keybinding); await this.code.dispatchKeybinding('enter'); - await this.code.waitForElement(`.keybindings-list-container div[aria-label="Keybinding is ${ariaLabel}."]`); + await this.code.waitForElement(`.keybindings-list-container .keybinding-label div[title="${title}"]`); } } -- GitLab