Skip to content

bug(Tabs): Timeout while running unit test with Tabs harness #23193

Closed
@Plondrein

Description

@Plondrein

Reproduction

As bug happens only with minimized browser, providing reproduction repo:
https://github.com/Plondrein/jubaj/tree/tabs-bug

Steps to reproduce:

  1. Run tests for TabsComponent (or just run npm run test)
  2. Minimize browser that was launched by karma

Expected Behavior

Test(s) should pass.

Actual Behavior

'TabsComponent should work' test reurns 'Error: Timeout - Async function did not complete within 5000ms'

With browser non-mimized, everything works well.

Environment

  • Angular: 12.1.1
  • CDK/Material: 12.1.2
  • Browser(s): Chrome
  • Operating System: Windows 10 (Had such errors on MacOS too)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions