Release Sign in with QR out of labs (#10066)
This commit is contained in:
parent
477de46814
commit
5123d7e641
9 changed files with 12 additions and 66 deletions
|
@ -1351,17 +1351,7 @@ describe("<SessionManagerTab />", () => {
|
|||
});
|
||||
});
|
||||
|
||||
it("does not render qr code login section when disabled", () => {
|
||||
settingsValueSpy.mockReturnValue(false);
|
||||
const { queryByText } = render(getComponent());
|
||||
|
||||
expect(settingsValueSpy).toHaveBeenCalledWith("feature_qr_signin_reciprocate_show");
|
||||
|
||||
expect(queryByText("Sign in with QR code")).toBeFalsy();
|
||||
});
|
||||
|
||||
it("renders qr code login section when enabled", async () => {
|
||||
settingsValueSpy.mockImplementation((settingName) => settingName === "feature_qr_signin_reciprocate_show");
|
||||
it("renders qr code login section", async () => {
|
||||
const { getByText } = render(getComponent());
|
||||
|
||||
// wait for versions call to settle
|
||||
|
@ -1371,7 +1361,6 @@ describe("<SessionManagerTab />", () => {
|
|||
});
|
||||
|
||||
it("enters qr code login section when show QR code button clicked", async () => {
|
||||
settingsValueSpy.mockImplementation((settingName) => settingName === "feature_qr_signin_reciprocate_show");
|
||||
const { getByText, getByTestId } = render(getComponent());
|
||||
// wait for versions call to settle
|
||||
await flushPromises();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue