test: use ControlOrMeta in keyboard helper

This commit is contained in:
Benjamin Lu
2026-04-09 10:32:41 -07:00
parent 50de97488b
commit 22e318535c

View File

@@ -14,9 +14,8 @@ export class KeyboardHelper {
keyToPress: string,
locator: Locator | null = this.canvas
): Promise<void> {
const modifier = process.platform === 'darwin' ? 'Meta' : 'Control'
const target = locator ?? this.page.keyboard
await target.press(`${modifier}+${keyToPress}`)
await target.press(`ControlOrMeta+${keyToPress}`)
await this.nextFrame()
}