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

Cashier errorcomponent testcase #4879

Merged

Conversation

ashraf-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 Feb 15, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/deriv/deriv-app/45hJoLZLf9pKwFaUcWVPtgjL4X4C
✅ Preview: https://deriv-app-git-fork-ashraf-deriv-cashier-errorcomponent-testcase.binary.sx

@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2022

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/4879](https://github.com/binary-com/deriv-app/pull/4879)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-ashraf-deriv-cashier-errorcomponent-testcase.binary.sx?qa_server=frontend.binaryws.com&app_id=30371
    - **Original**: https://deriv-app-git-fork-ashraf-deriv-cashier-errorcomponent-testcase.binary.sx
- **App ID**: `30371`

likhith-deriv
likhith-deriv previously approved these changes Feb 28, 2022
nijil-deriv
nijil-deriv previously approved these changes Mar 9, 2022
@ghost
Copy link

ghost commented Mar 24, 2022

Merge with current master please 🙏
LGTM 👍

Copy link
Contributor

@matin-deriv matin-deriv left a comment

Choose a reason for hiding this comment

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

Why there are changes in packages/dashboard/lib/index.js?
Please help to revert it back!

redirect_url={redirect_to}
redirect_label={redirect_label || <Localize i18n_default_text='Refresh' />}
redirect_urls={[redirect_to]}
redirect_labels={[redirect_label || <Localize key={0} i18n_default_text='Refresh' />]}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need key={0}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is throwing error without the key for the element.

@codecov-commenter
Copy link

codecov-commenter commented Mar 30, 2022

Codecov Report

Merging #4879 (055d05f) into master (37759fd) will increase coverage by 0.00%.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##           master    #4879   +/-   ##
=======================================
  Coverage   13.32%   13.32%           
=======================================
  Files        1284     1284           
  Lines       29092    29093    +1     
  Branches     4911     4911           
=======================================
+ Hits         3876     3878    +2     
  Misses      24978    24978           
+ Partials      238      237    -1     
Impacted Files Coverage Δ
...pp/Components/Layout/Header/toggle-menu-drawer.jsx 0.00% <0.00%> (ø)
...ackages/cashier/src/Components/error-component.jsx 81.25% <100.00%> (+12.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77861e5...055d05f. Read the comment docs.

matin-deriv
matin-deriv previously approved these changes Apr 1, 2022
@vercel
Copy link

vercel bot commented Apr 27, 2022

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

Name Status Preview Updated
deriv-app ✅ Ready (Inspect) Visit Preview Apr 27, 2022 at 6:06AM (UTC)

@sonarcloud
Copy link

sonarcloud bot commented Apr 27, 2022

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
3.1% 3.1% Duplication

@farrah-deriv farrah-deriv merged commit d157baa into binary-com:master Apr 27, 2022
sandeep-deriv pushed a commit to sandeep-deriv/deriv-app that referenced this pull request Apr 29, 2022
* test commit1

* platform settings font color change for select theme text in dark mode

* reverted test changes

* error component test case initial commit

* feat: add error component test

* feat: additional error components

* more test coverage

* rveret un wanted codes

* conflicts

* change test labels

* error component test coverage

* test case for error component and an update in routes.spec.js

* remove commented code blocks

* Add more coverage to the test case

* revert changes done for test case run

* remove commented code

* fix - prop data type update for redirect_urls and redirect_labels

* delete unwanted folder

* code cleaning

Co-authored-by: Ashraf Ali <ashrafali@Ashrafs-MacBook-Pro.local>
Co-authored-by: ashrafali-v <ashrafalifrk@gmail.com>
Co-authored-by: Farrah Mae Ochoa <82315152+farrah-deriv@users.noreply.github.com>
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.

7 participants