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: evgeniy/ 91704/ language settings radio button test coverage #8014

Conversation

yauheni-deriv
Copy link
Contributor

Changes:

Please include a summary of the change and which issue is fixed below:

  • ...

When you need to add unit test

  • If this change disrupt current flow
  • If this change is adding new flow

When you need to add integration test

  • If components from external libraries are being used to define the flow, e.g. @deriv/components
  • If it relies on a very specific set of props with no default behavior for the current component.

Test coverage checklist (for reviewer)

  • Ensure utility / function has a test case
  • Ensure all the tests are passing

Type of change

  • Bug fix
  • New feature
  • Update feature
  • Refactor code
  • Translation to code
  • Translation to crowdin
  • Script configuration
  • Improve performance
  • Style only
  • Dependency update
  • Documentation update
  • Release

@vercel
Copy link

vercel bot commented Mar 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2023 9:11am

@sonarcloud
Copy link

sonarcloud bot commented Mar 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
2.3% 2.3% Duplication

@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/8014](https://github.com/binary-com/deriv-app/pull/8014)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-yauheni-deriv-evgeniy-91704languagese-08316b.binary.sx?qa_server=red.binaryws.com&app_id=24067
    - **Original**: https://deriv-app-git-fork-yauheni-deriv-evgeniy-91704languagese-08316b.binary.sx
- **App ID**: `24067`

@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 20
🟧 Accessibility 75
🟢 Best practices 92
🟧 SEO 85
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-yauheni-deriv-evgeniy-91704languagese-08316b.binary.sx/

@codecov-commenter
Copy link

codecov-commenter commented Mar 24, 2023

Codecov Report

Merging #8014 (6702dbd) into master (5a419a5) will increase coverage by 0.00%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##           master    #8014   +/-   ##
=======================================
  Coverage   20.89%   20.90%           
=======================================
  Files        1555     1555           
  Lines       36067    36067           
  Branches     7059     7059           
=======================================
+ Hits         7536     7539    +3     
+ Misses      27790    27787    -3     
  Partials      741      741           
Impacted Files Coverage Δ
...onents/language-settings/language-radio-button.tsx 100.00% <ø> (+100.00%) ⬆️

'settings-language__language-link--active'
);

const btn = screen.getByRole('radio');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const btn = screen.getByRole('radio');
const button = screen.getByRole('radio');

Isn't this more clear? 🤔

jim-deriv
jim-deriv previously approved these changes Apr 4, 2023
hubert-deriv
hubert-deriv previously approved these changes Apr 4, 2023
suisin-deriv
suisin-deriv previously approved these changes Apr 4, 2023
@yauheni-deriv yauheni-deriv force-pushed the evgeniy/91704/language_settings_radio_btn_test_coverage branch from eb15f2a to b6f5d96 Compare April 4, 2023 07:43
Copy link
Contributor

@niloofar-deriv niloofar-deriv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@sonarcloud
Copy link

sonarcloud bot commented Apr 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
4.4% 4.4% Duplication

@github-actions
Copy link
Contributor

Generating Lighthouse report...

@jim-deriv jim-deriv merged commit 5893b81 into binary-com:master May 12, 2023
nijil-deriv pushed a commit to nijil-deriv/deriv-app that referenced this pull request May 24, 2023
…inary-com#8014)

* test: language settings radio button test coverage

* refactor: variable name change

---------

Co-authored-by: “yauheni-kryzhyk-deriv” <“yauheni@deriv.me”>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants