-
Notifications
You must be signed in to change notification settings - Fork 379
[UPM-611] Suisin/upm611/change self exclusion learn more content #13437
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
[UPM-611] Suisin/upm611/change self exclusion learn more content #13437
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
}, | ||
]; | ||
|
||
if (is_uk) { |
There was a problem hiding this comment.
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
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(); | ||
}); |
There was a problem hiding this comment.
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
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-suisin-deriv-suisin-upm611changeselfe-460c20.binary.sx/ |
…iv-com#13437) * chore: update self exclusion pop up message * chore: update test case and remove unused items in self-exclusion-content
Changes:
Change Self Exclusion Content message to follow the document: https://docs.google.com/document/d/1laQxwr-u7IDZu5h7nRlGjYKd37Wjgq0JhDwHZpSZ0Ig/edit
Screenshots:
ROW Users

EU Users
