Set type in auth dict for m.oauth UIA stage (#33344)
* Set `type` in auth dict for `m.oauth` UIA stage * Update tests
This commit is contained in:
@@ -970,7 +970,7 @@ export class MasUnlockCrossSigningAuthEntry extends FallbackAuthEntry<{
|
|||||||
};
|
};
|
||||||
|
|
||||||
private onRetryClick = (): void => {
|
private onRetryClick = (): void => {
|
||||||
this.props.submitAuthDict({});
|
this.props.submitAuthDict({ type: MasUnlockCrossSigningAuthEntry.LOGIN_TYPE });
|
||||||
};
|
};
|
||||||
|
|
||||||
public render(): React.ReactNode {
|
public render(): React.ReactNode {
|
||||||
|
|||||||
+1
-1
@@ -96,7 +96,7 @@ describe("<MasUnlockCrossSigningAuthEntry/>", () => {
|
|||||||
renderAuth({ submitAuthDict });
|
renderAuth({ submitAuthDict });
|
||||||
|
|
||||||
fireEvent.click(screen.getByRole("button", { name: "Retry" }));
|
fireEvent.click(screen.getByRole("button", { name: "Retry" }));
|
||||||
expect(submitAuthDict).toHaveBeenCalledWith({});
|
expect(submitAuthDict).toHaveBeenCalledWith({ type: AuthType.OAuth });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user