Skip to content

Conversation

suisin-deriv
Copy link
Contributor

Changes:

Change Self Exclusion Content message to follow the document: https://docs.google.com/document/d/1laQxwr-u7IDZu5h7nRlGjYKd37Wjgq0JhDwHZpSZ0Ig/edit

Screenshots:

ROW Users
Screenshot 2024-02-08 at 11 04 22 AM

EU Users
Screenshot 2024-02-08 at 11 05 50 AM

Copy link

vercel bot commented Feb 8, 2024

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

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Feb 8, 2024 3:27am

Copy link

sonarqubecloud bot commented Feb 8, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
8.9% Duplication on New Code

See analysis details on SonarCloud

},
];

if (is_uk) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing the is_uk check in self_exclusion content since we are not supporting UK business anymore

Comment on lines -103 to -135
it('should render SelfExclusionArticleContent component for EU/UK items', () => {
mock_context.is_eu = true;
mock_context.is_uk = true;

render(
<SelfExclusionContext.Provider value={mock_context}>
<SelfExclusionArticleContent />
</SelfExclusionContext.Provider>
);

expect(screen.getByText(eu_item)).toBeInTheDocument();
expect(screen.getByText(eu_uk_item)).toBeInTheDocument();
expect(screen.getByText(not_app_settings_eu_uk_descr)).toBeInTheDocument();
expect(screen.queryByText(non_eu_item)).not.toBeInTheDocument();
});

it('should render SelfExclusionArticleContent component for EU/UK items with app settings', () => {
mock_context.is_app_settings = true;
mock_context.is_eu = true;
mock_context.is_uk = true;

render(
<SelfExclusionContext.Provider value={mock_context}>
<SelfExclusionArticleContent />
</SelfExclusionContext.Provider>
);

expect(screen.getByText(eu_item)).toBeInTheDocument();
expect(screen.getByText(eu_uk_item)).toBeInTheDocument();
expect(screen.queryByText(not_app_settings_eu_descr)).not.toBeInTheDocument();
expect(screen.queryByText(not_app_settings_eu_uk_descr)).not.toBeInTheDocument();
expect(screen.queryByText(non_eu_item)).not.toBeInTheDocument();
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing test case for UK clients

Copy link
Contributor

github-actions bot commented Feb 8, 2024

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/13437](https://github.com/binary-com/deriv-app/pull/13437)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-suisin-deriv-suisin-upm611changeselfe-460c20.binary.sx?qa_server=red.derivws.com&app_id=32210
    - **Original**: https://deriv-app-git-fork-suisin-deriv-suisin-upm611changeselfe-460c20.binary.sx
- **App ID**: `32210`

Copy link
Contributor

github-actions bot commented Feb 8, 2024

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 31
🟧 Accessibility 89
🟢 Best practices 92
🟧 SEO 85
🟧 PWA 78

Lighthouse ran with https://deriv-app-git-fork-suisin-deriv-suisin-upm611changeselfe-460c20.binary.sx/

@likhith-deriv likhith-deriv merged commit 56f8a1c into deriv-com:master Feb 9, 2024
vinu-deriv pushed a commit to vinu-deriv/deriv-app that referenced this pull request Feb 12, 2024
…iv-com#13437)

* chore: update self exclusion pop up message

* chore: update test case and remove unused items in self-exclusion-content
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.

3 participants