File tree Expand file tree Collapse file tree
packages/fxa-settings/src/pages/Signin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -763,6 +763,19 @@ describe('Signin component', () => {
763763 screen . queryByRole ( 'button' , { name : 'Sign in' } )
764764 ) . not . toBeInTheDocument ( ) ;
765765 } ) ;
766+
767+ it ( 'renders third party auth options for sync with linked account' , ( ) => {
768+ const integration = createMockSigninOAuthNativeSyncIntegration ( ) ;
769+ render ( { integration, hasPassword : false , hasLinkedAccount : true } ) ;
770+
771+ signInHeaderRendered ( ) ;
772+ expect (
773+ screen . queryByRole ( 'button' , { name : / C o n t i n u e w i t h G o o g l e / } )
774+ ) . toBeInTheDocument ( ) ;
775+ expect (
776+ screen . queryByRole ( 'button' , { name : / C o n t i n u e w i t h A p p l e / } )
777+ ) . toBeInTheDocument ( ) ;
778+ } ) ;
766779 } ) ;
767780 } ) ;
768781
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ const Signin = ({
339339 } }
340340 />
341341 ) }
342- { isPasswordNeededRef . current ? (
342+ { isPasswordNeededRef . current && hasPassword ? (
343343 < CardHeader
344344 headingText = "Enter your password"
345345 headingAndSubheadingFtlId = "signin-password-needed-header-2"
You can’t perform that action at this time.
0 commit comments