Skip to content

Commit

Permalink
Merge branch 'main' into rna/field-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
calebpollman committed Nov 22, 2022
2 parents 53ec1bd + 5763de9 commit d497937
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 618 deletions.
2 changes: 0 additions & 2 deletions packages/react-core/src/Authenticator/hooks/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export type SetupTOTPBaseProps<FieldType = {}> = {

export type SignInBaseProps<FieldType = {}> = {
hideSignUp?: boolean;
socialProviders?: AuthenticatorMachineContext['socialProviders'];
toFederatedSignIn: AuthenticatorMachineContext['toFederatedSignIn'];
toResetPassword: AuthenticatorMachineContext['toResetPassword'];
toSignUp: AuthenticatorMachineContext['toSignUp'];
Expand All @@ -131,7 +130,6 @@ export type SignInBaseProps<FieldType = {}> = {

export type SignUpBaseProps<FieldType = {}> = {
hideSignIn?: boolean;
socialProviders?: AuthenticatorMachineContext['socialProviders'];
toFederatedSignIn: AuthenticatorMachineContext['toFederatedSignIn'];
toSignIn: AuthenticatorMachineContext['toSignIn'];
validationErrors?: AuthenticatorMachineContext['validationErrors'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ Object {
"handleSubmit": [MockFunction],
"hideSignUp": false,
"isPending": false,
"socialProviders": Array [],
"toFederatedSignIn": [MockFunction],
"toResetPassword": [MockFunction],
"toSignUp": [MockFunction],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const {
resendCode,
route,
skipVerification,
socialProviders,
submitForm,
toFederatedSignIn,
toResetPassword,
Expand Down Expand Up @@ -90,7 +89,6 @@ describe('getRouteMachineSelector', () => {
'signIn',
[
...commonSelectorProps,
socialProviders,
toFederatedSignIn,
toResetPassword,
toSignUp,
Expand Down Expand Up @@ -143,7 +141,6 @@ describe('props resolver functions', () => {
error,
hideSignUp: false,
isPending,
socialProviders,
toFederatedSignIn,
toResetPassword,
toSignUp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const RESET_PASSWORD_MACHINE_KEYS: ResetPasswordMachineKey[] = [
];
const SIGN_IN_MACHINE_KEYS: SignInMachineKey[] = [
...COMMON_ROUTE_MACHINE_KEYS,
'socialProviders',
'toFederatedSignIn',
'toResetPassword',
'toSignUp',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,6 @@ describe('SignUp', () => {
expect(queryByRole('tab')).toBe(null);
});

it('renders as expected with social providers', () => {
const { toJSON, queryByText } = render(
<SignUp
{...props}
socialProviders={['amazon', 'apple', 'facebook', 'google']}
/>
);
expect(toJSON()).toMatchSnapshot();

expect(queryByText('amazon')).toBeDefined();
expect(queryByText('apple')).toBeDefined();
expect(queryByText('facebook')).toBeDefined();
expect(queryByText('google')).toBeDefined();
});

it('renders as expected when isPending is true', () => {
const { toJSON, queryByText } = render(<SignUp {...props} isPending />);
expect(toJSON()).toMatchSnapshot();
Expand Down
Loading

0 comments on commit d497937

Please sign in to comment.