diff --git a/src/components/Footer/__tests__/Footer.test.tsx b/src/components/Footer/__tests__/Footer.test.tsx index 7fa85a22..49c6a224 100644 --- a/src/components/Footer/__tests__/Footer.test.tsx +++ b/src/components/Footer/__tests__/Footer.test.tsx @@ -31,11 +31,6 @@ describe('HeroHeader', () => { expect(community_link).toBeInTheDocument(); expect(community_link).toHaveAttribute('href', 'https://deriv.vanillacommunity.com/'); }); - it('should render telegram link properly', () => { - const telegram_link = screen.getByRole('link', { name: 'Telegram' }); - expect(telegram_link).toBeInTheDocument(); - expect(telegram_link).toHaveAttribute('href', 'https://t.me/+g6FV5tFY1u9lZGE1'); - }); it('should render footer body texts properly', () => { const help_text = screen.getByText(/^we're here to help$/i); expect(help_text).toBeInTheDocument(); diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index 256c736d..0f10b85a 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -21,17 +21,6 @@ const Footer = () => { > Join our community - -
- -

Telegram

-
-
diff --git a/src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/__tests__/register-app-dialog-success.test.tsx b/src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/__tests__/register-app-dialog-success.test.tsx index 0898d3dd..f2908656 100644 --- a/src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/__tests__/register-app-dialog-success.test.tsx +++ b/src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/__tests__/register-app-dialog-success.test.tsx @@ -29,10 +29,7 @@ describe('App Dialog Register Success', () => { }); it('Should render buttons properly', () => { - const primaryButton = screen.getByRole('button', { name: /join our telegram community/i }); const secondaryButton = screen.getByRole('button', { name: /got it/i }); - - expect(primaryButton).toBeInTheDocument(); expect(secondaryButton).toBeInTheDocument(); }); @@ -48,13 +45,4 @@ describe('App Dialog Register Success', () => { expect(mockOnClose).toHaveBeenCalledTimes(1); }); - - it('Should update current tab on primary button click to Manage Application', async () => { - const primaryButton = screen.getByRole('button', { name: /join our telegram community/i }); - - await userEvent.click(primaryButton); - - expect(mockUpdateCurrentTab).toHaveBeenCalledTimes(1); - expect(mockUpdateCurrentTab).toHaveBeenCalledWith('MANAGE_APPS'); - }); }); diff --git a/src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/index.tsx b/src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/index.tsx index 5f0fb0ef..1c84353e 100644 --- a/src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/index.tsx +++ b/src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/index.tsx @@ -32,9 +32,6 @@ export const RegisterAppDialogSuccess = ({ onClose }: IRegisterAppDialogSuccessP -