Skip to content

Commit 2c7a47f

Browse files
committed
feat: [AB#16939] simplify profile tab link tests, removes flaky test
1 parent d4ab7de commit 2c7a47f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

web/test/pages/profile/profile-shared.test.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -885,35 +885,6 @@ describe("profile - shared", () => {
885885
useMockRouter({ isReady: true, query: {} });
886886
});
887887

888-
it("updates the tab query param when navigating between tabs", async () => {
889-
const business = generateBusinessForProfile({});
890-
renderPage({ business });
891-
892-
await act(async () => {
893-
chooseTab("numbers");
894-
});
895-
896-
await screen.findByRole("tabpanel", {
897-
name: Config.profileDefaults.default.profileTabNumbersTitle,
898-
});
899-
900-
await waitFor(() => {
901-
expect(window.location.search).toContain(
902-
`?${QUERIES.tab}=${Config.profileDefaults.default.profileTabSlugs.numbers}`,
903-
);
904-
});
905-
906-
await act(async () => {
907-
chooseTab("contact");
908-
});
909-
910-
await waitFor(() => {
911-
expect(window.location.search).toContain(
912-
`?${QUERIES.tab}=${Config.profileDefaults.default.profileTabSlugs.contact}`,
913-
);
914-
});
915-
});
916-
917888
it("navigates to the correct slug for all tabs defined in Config", async () => {
918889
const business = generateBusinessForProfile({
919890
profileData: generateProfileData({

0 commit comments

Comments
 (0)