Skip to content
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
3 changes: 2 additions & 1 deletion src/components/Footer/__tests__/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ describe('Footer Component', () => {
render(<Footer />);
const telegramButton = screen.getByText(/Telegram/);
fireEvent.click(telegramButton);
expect(window.open).toHaveBeenCalledWith('https://t.me/derivdotcomofficial', '_blank');
expect(window.open).toHaveBeenCalledWith('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
});

it('opens respective email in a new tab when email button is clicked', () => {
window.open = jest.fn();
render(<Footer />);
const emailButton = screen.getByText(/Send an email/);
expect(emailButton).toBeInTheDocument();
fireEvent.click(emailButton);
expect(window.open).toHaveBeenCalledWith('mailto:api-support@deriv.com', '_blank');
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Footer = () => {
variant='outlined'
className={styles.PaddedButton}
onClick={() => {
window.open('https://t.me/derivdotcomofficial', '_blank');
window.open('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
}}
>
<SocialTelegramBlackIcon fill='#000000' iconSize='xs' />
Expand Down
Loading