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

Shaheer/90982/personal details spec #8487

Conversation

shaheer-deriv
Copy link
Contributor

Changes:

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

  • added test cases for the personal details section

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
  • Test Cases

@vercel
Copy link

vercel bot commented May 5, 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 Jul 3, 2023 0:43am

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 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/8487](https://github.com/binary-com/deriv-app/pull/8487)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-shaheer-deriv-shaheer-90982personal-d-b0fc2e.binary.sx?qa_server=red.binaryws.com&app_id=24068
    - **Original**: https://deriv-app-git-fork-shaheer-deriv-shaheer-90982personal-d-b0fc2e.binary.sx
- **App ID**: `24068`

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

🚨 Lighthouse report for the changes in this PR:

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

Lighthouse ran with https://deriv-app-git-fork-shaheer-deriv-shaheer-90982personal-d-b0fc2e.binary.sx/

@@ -652,6 +653,7 @@ export const PersonalDetailsForm = ({
disabled={!isChangeableField('first_name')}
error={errors.first_name}
id={'first_name'}
data-testid='first_name'
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
data-testid='first_name'
data-testid='dt_first_name'

Use dt in front of every data-testid declaration

@@ -665,6 +667,7 @@ export const PersonalDetailsForm = ({
required
disabled={!isChangeableField('last_name')}
error={errors.last_name}
data-testid='last_name'
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
data-testid='last_name'
data-testid='dt_last_name'

@@ -682,6 +685,7 @@ export const PersonalDetailsForm = ({
required
disabled={!isChangeableField('first_name')}
error={errors.first_name}
data-testid='first_name'
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
data-testid='first_name'
data-testid='dt_first_name'

@@ -697,6 +701,7 @@ export const PersonalDetailsForm = ({
required
disabled={!isChangeableField('last_name')}
error={errors.last_name}
data-testid='last_name'
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
data-testid='last_name'
data-testid='dt_last_name'

@@ -872,6 +877,7 @@ export const PersonalDetailsForm = ({
onBlur={handleBlur}
required
error={errors.phone}
data-testid='phone'
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
data-testid='phone'
data-testid='dt_phone'

@@ -1007,6 +1013,7 @@ export const PersonalDetailsForm = ({
error={errors.address_line_1}
required
disabled={!isChangeableField('address_line_1')}
data-testid='address_line_1'
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
data-testid='address_line_1'
data-testid='dt_address_line_1'

@@ -1040,6 +1047,7 @@ export const PersonalDetailsForm = ({
onBlur={handleBlur}
required
disabled={!isChangeableField('address_city')}
data-testid='address_city'
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
data-testid='address_city'
data-testid='dt_address_city'

@codecov-commenter
Copy link

codecov-commenter commented May 8, 2023

Codecov Report

Merging #8487 (540f970) into master (d5c38a0) will increase coverage by 20.61%.
The diff coverage is 50.00%.

❗ Current head 540f970 differs from pull request most recent head e8bd3a1. Consider uploading reports for the commit e8bd3a1 to get more accurate results

@@             Coverage Diff             @@
##           master    #8487       +/-   ##
===========================================
+ Coverage    0.05%   20.67%   +20.61%     
===========================================
  Files         117     1635     +1518     
  Lines        3425    36990    +33565     
  Branches      893     7367     +6474     
===========================================
+ Hits            2     7647     +7645     
- Misses       3423    28585    +25162     
- Partials        0      758      +758     
Impacted Files Coverage Δ
packages/shared/src/utils/location/location.ts 0.00% <0.00%> (ø)
...c/utils/validation/declarative-validation-rules.ts 38.96% <ø> (ø)
...tions/Profile/PersonalDetails/personal-details.jsx 34.02% <100.00%> (ø)

... and 1670 files with indirect coverage changes

matin-deriv
matin-deriv previously approved these changes May 8, 2023
@sonarcloud
Copy link

sonarcloud bot commented May 10, 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
20.4% 20.4% Duplication

@gitguardian
Copy link

gitguardian bot commented Jun 13, 2023

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
- Generic High Entropy Secret 97b4947 packages/account/src/Components/currency-selector/tests/currency-selector.spec.tsx View secret
- Generic High Entropy Secret 97b4947 packages/account/src/Components/currency-selector/tests/currency-selector.spec.tsx View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@sonarcloud
Copy link

sonarcloud bot commented Jul 3, 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
3.7% 3.7% Duplication

@coveralls
Copy link

coveralls commented Jul 3, 2023

Pull Request Test Coverage Report for Build 5444390313

  • 1 of 2 (50.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 8.911%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/shared/src/utils/location/location.ts 0 1 0.0%
Totals Coverage Status
Change from base Build 5443570739: 0.04%
Covered Lines: 8376
Relevant Lines: 77244

💛 - Coveralls

@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2023

Generating Lighthouse report...

@ali-hosseini-deriv ali-hosseini-deriv merged commit 2172c91 into binary-com:master Jul 10, 2023
3 of 4 checks passed
@ali-hosseini-deriv
Copy link
Member

✨ PR has been merged by Paimon the Release Bot

@shaheer-deriv shaheer-deriv deleted the shaheer/90982/personal-details-spec branch July 14, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants