Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2e96a4c

Browse files
committed
Update test
1 parent bd96482 commit 2e96a4c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/components/views/settings/tabs/user/GeneralUserSettingsTab-test.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,10 @@ describe("<GeneralUserSettingsTab />", () => {
9292
} as unknown as OidcClientStore;
9393
jest.spyOn(stores, "oidcClientStore", "get").mockReturnValue(mockOidcClientStore);
9494

95-
const { getByTestId } = render(getComponent());
95+
render(getComponent());
9696

97-
// wait for well-known call to settle
98-
await flushPromises();
99-
100-
expect(getByTestId("external-account-management-outer").textContent).toMatch(/.*id\.server\.org/);
101-
expect(getByTestId("external-account-management-link").getAttribute("href")).toMatch(accountManagementLink);
97+
const manageAccountLink = await screen.findByRole("button", { name: "Manage account" });
98+
expect(manageAccountLink.getAttribute("href")).toMatch(accountManagementLink);
10299
});
103100

104101
describe("Manage integrations", () => {

0 commit comments

Comments
 (0)