Skip to content

Commit

Permalink
kate/80180/Update_DP2P_content_on_cashier_page (#7233)
Browse files Browse the repository at this point in the history
* fix: Update DP2P content on cashier page

* test: rewrite test for cashier-onboarding file because the taxt was changed
  • Loading branch information
kate-deriv committed Jan 9, 2023
1 parent 1d755fe commit 3473fb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('<CashierOnboarding />', () => {
expect(screen.getByText('Deposit with Deriv P2P')).toBeInTheDocument();
expect(
screen.getByText(
'Deposit in your local currency via peer-to-peer exchange with fellow traders in your country.'
'Deposit with your local currency via peer-to-peer exchange with fellow traders in your country.'
)
).toBeInTheDocument();
});
Expand Down Expand Up @@ -262,7 +262,7 @@ describe('<CashierOnboarding />', () => {
const node_list = screen.getAllByTestId('dt_cashier_onboarding_detail_div');
const deposit_with_dp2p_detail_div = Array.from(node_list).find(node =>
node.textContent.includes(
'Deposit in your local currency via peer-to-peer exchange with fellow traders in your country.'
'Deposit with your local currency via peer-to-peer exchange with fellow traders in your country.'
)
);
fireEvent.click(deposit_with_dp2p_detail_div);
Expand All @@ -283,7 +283,7 @@ describe('<CashierOnboarding />', () => {
const node_list = screen.getAllByTestId('dt_cashier_onboarding_detail_div');
const deposit_with_dp2p_detail_div = Array.from(node_list).find(node =>
node.textContent.includes(
'Deposit in your local currency via peer-to-peer exchange with fellow traders in your country.'
'Deposit with your local currency via peer-to-peer exchange with fellow traders in your country.'
)
);
fireEvent.click(deposit_with_dp2p_detail_div);
Expand All @@ -301,7 +301,7 @@ describe('<CashierOnboarding />', () => {
const node_list = screen.getAllByTestId('dt_cashier_onboarding_detail_div');
const deposit_with_dp2p_detail_div = Array.from(node_list).find(node =>
node.textContent.includes(
'Deposit in your local currency via peer-to-peer exchange with fellow traders in your country.'
'Deposit with your local currency via peer-to-peer exchange with fellow traders in your country.'
)
);
fireEvent.click(deposit_with_dp2p_detail_div);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const createDp2pProvider = onClick => {
return {
detail_click: onClick,
detail_description: localize(
'Deposit in your local currency via peer-to-peer exchange with fellow traders in your country.'
'Deposit with your local currency via peer-to-peer exchange with fellow traders in your country.'
),
detail_header: localize('Deposit with Deriv P2P'),
};
Expand Down

0 comments on commit 3473fb3

Please sign in to comment.