mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix #94665
This commit is contained in:
parent
c28c5b891c
commit
393aaa408b
|
@ -11,7 +11,7 @@ export class KeybindingsEditor {
|
|||
|
||||
constructor(private code: Code) { }
|
||||
|
||||
async updateKeybinding(command: string, keybinding: string, ariaLabel: string): Promise<any> {
|
||||
async updateKeybinding(command: string, keybinding: string, title: string): Promise<any> {
|
||||
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}"]`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue