Skip to content

Commit

Permalink
Suisin/webrel3128/hyperlink changed colour (#16716)
Browse files Browse the repository at this point in the history
* fix: link color in account settings page

* chore: revert icon file

* chore: add fix for risk-management-info-modal test case
  • Loading branch information
suisin-deriv authored Sep 3, 2024
1 parent f94d111 commit 9d7b634
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@deriv-com/utils": "^0.0.25",
"@deriv-com/ui": "1.29.10",
"@deriv/api": "^1.0.0",
"@deriv-com/quill-ui": "1.16.1",
"@deriv-com/quill-ui": "1.16.4",
"@deriv/components": "^1.0.0",
"@deriv/hooks": "^1.0.0",
"@deriv/integration": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@datadog/browser-rum": "^5.11.0",
"@deriv-com/analytics": "1.12.1",
"@deriv-com/quill-tokens": "^2.0.4",
"@deriv-com/quill-ui": "1.16.1",
"@deriv-com/quill-ui": "1.16.4",
"@deriv-com/translations": "1.3.5",
"@deriv-com/ui": "1.29.10",
"@deriv-com/utils": "^0.0.25",
Expand Down
2 changes: 1 addition & 1 deletion packages/trader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"dependencies": {
"@deriv-com/analytics": "1.12.1",
"@deriv-com/quill-tokens": "^2.0.4",
"@deriv-com/quill-ui": "1.16.1",
"@deriv-com/quill-ui": "1.16.4",
"@deriv-com/utils": "^0.0.25",
"@deriv-com/ui": "1.29.10",
"@deriv/api-types": "1.0.172",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import { render, screen, waitFor } from '@testing-library/react';

import RiskManagementInfoModal from '../risk-management-info-modal';
import userEvent from '@testing-library/user-event';
Expand Down Expand Up @@ -28,7 +28,8 @@ describe('RiskManagementInfoModal', () => {
expect(screen.queryByText(headerContent)).not.toBeInTheDocument();
});

it('should toggle the modal visibility when the button is clicked', () => {
it('should toggle the modal visibility when the button is clicked', async () => {
jest.useFakeTimers();
render(
<RiskManagementInfoModal
header_content={headerContent}
Expand All @@ -45,8 +46,10 @@ describe('RiskManagementInfoModal', () => {
expect(screen.getByText(infoMessage)).toBeInTheDocument();

userEvent.click(button);
await waitFor(() => jest.advanceTimersByTime(300));

expect(screen.queryByText(headerContent)).not.toBeInTheDocument();
jest.useRealTimers();
});

it('should not render the info message if it is not provided', () => {
Expand Down

0 comments on commit 9d7b634

Please sign in to comment.