Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/components/Footer/__tests__/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
11 changes: 0 additions & 11 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ const Footer = () => {
>
<span>Join our community</span>
</a>
<a
href='https://t.me/+g6FV5tFY1u9lZGE1'
target='_blank'
rel='noreferrer'
className={styles.communityButton}
>
<div className={styles.Telegram}>
<img src='/img/telegram.svg' className={styles.TelegramIcon} />
<p>Telegram</p>
</div>
</a>
</div>
</section>
<section className={styles.FooterBody}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand All @@ -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');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ export const RegisterAppDialogSuccess = ({ onClose }: IRegisterAppDialogSuccessP
<Button color='secondary' onClick={onClose} className={styles.btn}>
Got it
</Button>
<Button color='primary' onClick={onSuccessfulClick} className={styles.btn}>
Join our Telegram Community
</Button>
</div>
</Modal.PageContent>
</div>
Expand Down