This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +0
-31
lines changed
features/dashboard/components/Dialogs/RegisterAppDialogSuccess Expand file tree Collapse file tree 4 files changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,6 @@ describe('HeroHeader', () => {
3131 expect ( community_link ) . toBeInTheDocument ( ) ;
3232 expect ( community_link ) . toHaveAttribute ( 'href' , 'https://deriv.vanillacommunity.com/' ) ;
3333 } ) ;
34- it ( 'should render telegram link properly' , ( ) => {
35- const telegram_link = screen . getByRole ( 'link' , { name : 'Telegram' } ) ;
36- expect ( telegram_link ) . toBeInTheDocument ( ) ;
37- expect ( telegram_link ) . toHaveAttribute ( 'href' , 'https://t.me/+g6FV5tFY1u9lZGE1' ) ;
38- } ) ;
3934 it ( 'should render footer body texts properly' , ( ) => {
4035 const help_text = screen . getByText ( / ^ w e ' r e h e r e t o h e l p $ / i) ;
4136 expect ( help_text ) . toBeInTheDocument ( ) ;
Original file line number Diff line number Diff line change @@ -21,17 +21,6 @@ const Footer = () => {
2121 >
2222 < span > Join our community</ span >
2323 </ a >
24- < a
25- href = 'https://t.me/+g6FV5tFY1u9lZGE1'
26- target = '_blank'
27- rel = 'noreferrer'
28- className = { styles . communityButton }
29- >
30- < div className = { styles . Telegram } >
31- < img src = '/img/telegram.svg' className = { styles . TelegramIcon } />
32- < p > Telegram</ p >
33- </ div >
34- </ a >
3524 </ div >
3625 </ section >
3726 < section className = { styles . FooterBody } >
Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ describe('App Dialog Register Success', () => {
2929 } ) ;
3030
3131 it ( 'Should render buttons properly' , ( ) => {
32- const primaryButton = screen . getByRole ( 'button' , { name : / j o i n o u r t e l e g r a m c o m m u n i t y / i } ) ;
3332 const secondaryButton = screen . getByRole ( 'button' , { name : / g o t i t / i } ) ;
34-
35- expect ( primaryButton ) . toBeInTheDocument ( ) ;
3633 expect ( secondaryButton ) . toBeInTheDocument ( ) ;
3734 } ) ;
3835
@@ -48,13 +45,4 @@ describe('App Dialog Register Success', () => {
4845
4946 expect ( mockOnClose ) . toHaveBeenCalledTimes ( 1 ) ;
5047 } ) ;
51-
52- it ( 'Should update current tab on primary button click to Manage Application' , async ( ) => {
53- const primaryButton = screen . getByRole ( 'button' , { name : / j o i n o u r t e l e g r a m c o m m u n i t y / i } ) ;
54-
55- await userEvent . click ( primaryButton ) ;
56-
57- expect ( mockUpdateCurrentTab ) . toHaveBeenCalledTimes ( 1 ) ;
58- expect ( mockUpdateCurrentTab ) . toHaveBeenCalledWith ( 'MANAGE_APPS' ) ;
59- } ) ;
6048} ) ;
Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ export const RegisterAppDialogSuccess = ({ onClose }: IRegisterAppDialogSuccessP
3232 < Button color = 'secondary' onClick = { onClose } className = { styles . btn } >
3333 Got it
3434 </ Button >
35- < Button color = 'primary' onClick = { onSuccessfulClick } className = { styles . btn } >
36- Join our Telegram Community
37- </ Button >
3835 </ div >
3936 </ Modal . PageContent >
4037 </ div >
You can’t perform that action at this time.
0 commit comments