Skip to content

Commit

Permalink
fix: demo title test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-deriv committed Dec 12, 2024
1 parent 2458e1a commit 0fc9030
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('<CFDCompareAccountsTitleIcon />', () => {
mocked_props.is_demo = true;
mocked_props.is_eu_user = false;
render(<CFDCompareAccountsTitleIcon {...mocked_props} />);
expect(screen.getByText('Standard Demo')).toBeInTheDocument();
expect(screen.getByText('Standard demo')).toBeInTheDocument();
});

test('should render correct title for financial product in demo account', () => {
Expand All @@ -115,7 +115,7 @@ describe('<CFDCompareAccountsTitleIcon />', () => {
mocked_props.is_demo = true;
mocked_props.is_eu_user = false;
render(<CFDCompareAccountsTitleIcon {...mocked_props} />);
expect(screen.getByText('Financial Demo')).toBeInTheDocument();
expect(screen.getByText('Financial demo')).toBeInTheDocument();
});

test('should render correct title for Swap-Free with correct product type demo account', () => {
Expand All @@ -128,7 +128,7 @@ describe('<CFDCompareAccountsTitleIcon />', () => {
mocked_props.is_demo = true;
mocked_props.is_eu_user = false;
render(<CFDCompareAccountsTitleIcon {...mocked_props} />);
expect(screen.getByText('Swap-Free Demo')).toBeInTheDocument();
expect(screen.getByText('Swap-Free demo')).toBeInTheDocument();
});

test('should render correct title for Zero Spread with correct product type demo account', () => {
Expand All @@ -142,7 +142,7 @@ describe('<CFDCompareAccountsTitleIcon />', () => {
mocked_props.is_demo = true;
mocked_props.is_eu_user = false;
render(<CFDCompareAccountsTitleIcon {...mocked_props} />);
expect(screen.getByText('Zero Spread Demo')).toBeInTheDocument();
expect(screen.getByText('Zero Spread demo')).toBeInTheDocument();
});

test('should render correct title for DerivX with correct product type demo account', () => {
Expand All @@ -154,7 +154,7 @@ describe('<CFDCompareAccountsTitleIcon />', () => {
mocked_props.is_demo = true;
mocked_props.is_eu_user = false;
render(<CFDCompareAccountsTitleIcon {...mocked_props} />);
expect(screen.getByText('Deriv X Demo')).toBeInTheDocument();
expect(screen.getByText('Deriv X demo')).toBeInTheDocument();
});

test('should render correct title for EU clients demo accounts', () => {
Expand All @@ -164,6 +164,6 @@ describe('<CFDCompareAccountsTitleIcon />', () => {
mocked_props.is_demo = true;
mocked_props.is_eu_user = true;
render(<CFDCompareAccountsTitleIcon {...mocked_props} />);
expect(screen.getByText('CFDs Demo')).toBeInTheDocument();
expect(screen.getByText('CFDs demo')).toBeInTheDocument();
});
});

0 comments on commit 0fc9030

Please sign in to comment.