@@ -28,14 +28,25 @@ describe('HeroHeader', () => {
28
28
it ( 'should render community link properly' , ( ) => {
29
29
const community_link = screen . getByTestId ( 'community-link' ) ;
30
30
expect ( community_link ) . toBeInTheDocument ( ) ;
31
- expect ( community_link ) . toHaveAttribute ( 'href' , 'https://binary .vanillacommunity.com/' ) ;
31
+ expect ( community_link ) . toHaveAttribute ( 'href' , 'https://deriv .vanillacommunity.com/' ) ;
32
32
} ) ;
33
33
it ( 'should render the button inside community link properly' , ( ) => {
34
34
const community_link = screen . getByTestId ( 'community-link' ) ;
35
35
const { getByRole } = within ( community_link ) ;
36
36
const button = getByRole ( 'button' ) ;
37
37
expect ( button ) . toHaveTextContent ( 'Join our community' ) ;
38
38
} ) ;
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
+ } ) ;
39
50
it ( 'should render footer body texts properly' , ( ) => {
40
51
const help_text = screen . getByText ( / ^ w e ' r e h e r e t o h e l p $ / i) ;
41
52
expect ( help_text ) . toBeInTheDocument ( ) ;
0 commit comments