@@ -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 ( / ^ w e ' r e h e r e t o h e l p $ / i) ;
4152 expect ( help_text ) . toBeInTheDocument ( ) ;
0 commit comments