Skip to content

Commit

Permalink
chore: tweak the failed test because of content flag (#12019)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-deriv committed Dec 5, 2023
1 parent 7bc29f4 commit e775809
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { ContentFlag } from '@deriv/shared';
import { StoreProvider, mockStore } from '@deriv/stores';
import { render, screen } from '@testing-library/react';
import { APIProvider } from '@deriv/api';
Expand Down Expand Up @@ -55,7 +54,7 @@ describe('TradersHub', () => {
it('should display disclaimer if the user is from low risk eu country', () => {
render_container({
client: { is_logged_in: true },
traders_hub: { content_flag: ContentFlag.LOW_RISK_CR_EU },
traders_hub: { is_eu_user: true },
});
const disclaimer = screen.getByTestId('dt_traders_hub_disclaimer');
expect(disclaimer).toBeInTheDocument();
Expand Down

1 comment on commit e775809

@vercel
Copy link

@vercel vercel bot commented on e775809 Dec 5, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
deriv-app.binary.sx
binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.