Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(components): remove getByRoles for each button key #12798

Merged
merged 1 commit into from
May 26, 2023

Conversation

koji
Copy link
Contributor

@koji koji commented May 26, 2023

Overview

tests for software keyboard used getByRole for each button key and that slows down the tests. This PR removes most getByRole that used for each button key and check key value with getAllByRole and forEach.

before
✓ should render the software keyboards (7348 ms)

after
✓ should render the software keyboards (134 ms)

Test Plan

Changelog

  • update software keyboard tests

Review requests

Risk assessment

low

tests for software keyboard used getByRole for each button key and that slows down the tests. This
PR removes most getByRole that used for each button key and check key value with getAllByRole and
forEach.
@koji koji requested a review from a team May 26, 2023 20:35
@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Merging #12798 (8fa9caf) into edge (c9a7fa0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #12798   +/-   ##
=======================================
  Coverage   73.50%   73.50%           
=======================================
  Files        2261     2261           
  Lines       62047    62047           
  Branches     6717     6717           
=======================================
  Hits        45605    45605           
  Misses      14842    14842           
  Partials     1600     1600           
Flag Coverage Δ
app 71.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@koji koji marked this pull request as ready for review May 26, 2023 20:53
@koji koji requested a review from a team as a code owner May 26, 2023 20:53
@koji koji requested review from shlokamin and removed request for a team and shlokamin May 26, 2023 20:53
@koji koji merged commit 35f495d into edge May 26, 2023
@koji koji deleted the fix_software-keyboard-tests branch May 30, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants