diff --git a/.storybook/themes/news.scss b/.storybook/themes/news.scss index 571324744..9851bb3b5 100644 --- a/.storybook/themes/news.scss +++ b/.storybook/themes/news.scss @@ -3643,7 +3643,7 @@ ), "social-sign-on-button-container-apple-custom": ( "inline-size": 100% - ) + ), "social-sign-on-button-container-facebook": ( "justify-content": center, "border-block-start-width": 1px, diff --git a/blocks/identity-block/components/social-sign-on/_children/FacebookSignIn.jsx b/blocks/identity-block/components/social-sign-on/_children/FacebookSignIn.jsx index 2dc559d97..8a765a9c1 100644 --- a/blocks/identity-block/components/social-sign-on/_children/FacebookSignIn.jsx +++ b/blocks/identity-block/components/social-sign-on/_children/FacebookSignIn.jsx @@ -12,19 +12,21 @@ function FacebookSignIn({ customButtons, socialSignOnIn, className }) { if (customButtons) { return ( - +
+ +
); } diff --git a/blocks/identity-block/components/social-sign-on/_children/GoogleSignIn.jsx b/blocks/identity-block/components/social-sign-on/_children/GoogleSignIn.jsx index 159eb2e5f..1e30c2b55 100644 --- a/blocks/identity-block/components/social-sign-on/_children/GoogleSignIn.jsx +++ b/blocks/identity-block/components/social-sign-on/_children/GoogleSignIn.jsx @@ -12,31 +12,33 @@ function GoogleSignIn({ customButtons, socialSignOnIn, className }) { if (customButtons) { return ( - +
+ +
); } return ( diff --git a/blocks/identity-block/components/social-sign-on/index.test.jsx b/blocks/identity-block/components/social-sign-on/index.test.jsx index fb2e3e937..eceb9bbba 100644 --- a/blocks/identity-block/components/social-sign-on/index.test.jsx +++ b/blocks/identity-block/components/social-sign-on/index.test.jsx @@ -97,7 +97,7 @@ describe("Identity Social Login Component", () => { , ); - expect(screen.getByTestId('custom-google-signin-btn')).toBeInTheDocument(); + expect(screen.getByTestId('custom-google-sign-in-button')).toBeInTheDocument(); expect(screen.queryByTestId('fb-login-button')).not.toBeInTheDocument(); }); @@ -145,7 +145,7 @@ describe("Identity Social Login Component", () => { , ); - expect(screen.getByTestId('facebook-btn')).toBeInTheDocument(); + expect(screen.getByTestId('custom-facebook-btn')).toBeInTheDocument(); expect(screen.queryByTestId('google-sign-in-button')).not.toBeInTheDocument(); });