Skip to content

bug(cdk/testing): harnesses treat tabs different depending on test environment #19709

@e-hein

Description

@e-hein

Reproduction

https://travis-ci.org/github/e-hein/test-tabkey/branches

Expected Behavior

If I can switch from karma/jest to protractor I'd expect the same harness test to lead to the same results. In this case, I'd expected that senden TestKey.Tab to an TestElement it should select the next selectable element (or at least try to do so in the most common cases).

Alternative Behavior

Sending TestKey.Tab writes a \t into an input field in both environments.

Actual Behavior

  • Sending TestKey.Tab in ProtractorEnvironment selects the next input (=expected Behavior)
  • Sending TestKey.Tab in TestbedEnvironment does nothing (not even write \t)

Environment

  • Angular: 9.1.9
  • CDK/Material: cdk 9.2.4, material 9.2.4
  • Browser(s): Chrome, Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu):
    Angular CLI: 9.1.9
    Node: 12.18.0
    OS: darwin x64 / Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions