Skip to content

Use ControlOrMeta keyboard shortcuts in Playwright E2E tests for cross-platform compatibility #1014

Description

@iahmedgamal

Summary

Some Playwright E2E tests use keyboard shortcuts such as Control+A.
These work on Windows and Linux but fail when running the test suite locally on macOS, where the equivalent shortcut is Command+A.

Using ControlOrMeta makes the tests portable across all supported development environments.

Current

await page.keyboard.press('Control+A');

Proposed

await page.keyboard.press('ControlOrMeta+A');

Acceptance Criteria

  • All text-editing shortcuts use ControlOrMeta where appropriate.
  • E2E tests pass on macOS, Linux, and Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions