Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 1ccf5a6

Browse files
test: add testcase for telegram btn
1 parent 2275084 commit 1ccf5a6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/components/Footer/__tests__/Footer.test.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,25 @@ describe('HeroHeader', () => {
2828
it('should render community link properly', () => {
2929
const community_link = screen.getByTestId('community-link');
3030
expect(community_link).toBeInTheDocument();
31-
expect(community_link).toHaveAttribute('href', 'https://binary.vanillacommunity.com/');
31+
expect(community_link).toHaveAttribute('href', 'https://deriv.vanillacommunity.com/');
3232
});
3333
it('should render the button inside community link properly', () => {
3434
const community_link = screen.getByTestId('community-link');
3535
const { getByRole } = within(community_link);
3636
const button = getByRole('button');
3737
expect(button).toHaveTextContent('Join our community');
3838
});
39+
it('should render telegram link properly', () => {
40+
const telegram_link = screen.getByTestId('telegram-link');
41+
expect(telegram_link).toBeInTheDocument();
42+
expect(telegram_link).toHaveAttribute('href', 'https://t.me/+g6FV5tFY1u9lZGE1');
43+
});
44+
it('should render the button inside telegram link properly', () => {
45+
const telegram_link = screen.getByTestId('telegram-link');
46+
const { getByRole } = within(telegram_link);
47+
const button = getByRole('button');
48+
expect(button).toHaveTextContent('Telegram');
49+
});
3950
it('should render footer body texts properly', () => {
4051
const help_text = screen.getByText(/^we're here to help$/i);
4152
expect(help_text).toBeInTheDocument();

0 commit comments

Comments
 (0)