Skip to content

Slow unit tests in email_aliases.test.tsx, email_aliases_list.test.tsx #47897

@arthuredelstein

Description

@arthuredelstein

Description

Reported by @fallaciousreasoning:

Image

Steps to reproduce

  1. Run
npm run test-unit -- --findRelatedTests browser/resources/settings/email_aliases_page/tests/email_aliases_list.test.tsx

and

npm run test-unit -- --findRelatedTests browser/resources/settings/email_aliases_page/tests/email_aliases.test.tsx

Actual result

Some tests take more than 1 second each.

Expected result

Test should take tens of milliseconds at most.

Reproduces how often

Easily reproduced

Desktop Brave version (brave://version info)

Latest nightly

Android device

  • Brand/model:
  • Android version:

Channel information

  • release (stable)
  • beta
  • nightly

Reproducibility

  • with Brave Shields disabled
  • with Brave Rewards disabled
  • in the latest version of Chrome

Miscellaneous information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions