From 17231e545c3d60766327b47a5cc3924a681f14c9 Mon Sep 17 00:00:00 2001 From: "Timo K." Date: Fri, 28 Aug 2026 15:38:57 +0200 Subject: [PATCH] Update DeveloperSettingsTab.test.tsx --- src/settings/DeveloperSettingsTab.test.tsx | 23 +++++++++------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/settings/DeveloperSettingsTab.test.tsx b/src/settings/DeveloperSettingsTab.test.tsx index 9fbe7fca4..4533531c2 100644 --- a/src/settings/DeveloperSettingsTab.test.tsx +++ b/src/settings/DeveloperSettingsTab.test.tsx @@ -434,12 +434,10 @@ describe("DeveloperSettingsTab", () => { ); await waitFor(() => - expect(client.doesServerSupportUnstableFeature).toHaveBeenCalled(), + expect( + screen.getByText(/Media key rotation: active \(5 participants\)/), + ).toBeInTheDocument() ); - - expect( - screen.getByText(/Media key rotation: active \(5 participants\)/), - ).toBeInTheDocument(); }); it("displays suppressed status when key rotation is suppressed", async () => { @@ -459,14 +457,12 @@ describe("DeveloperSettingsTab", () => { ); await waitFor(() => - expect(client.doesServerSupportUnstableFeature).toHaveBeenCalled(), + expect( + screen.getByText( + /Media key rotation: suppressed, participant limit reached \(50 participants\)/, + ), + ).toBeInTheDocument() ); - - expect( - screen.getByText( - /Media key rotation: suppressed, participant limit reached \(50 participants\)/, - ), - ).toBeInTheDocument(); }); it("does not render KeyRotationStatus when not in a call", async () => { @@ -483,10 +479,9 @@ describe("DeveloperSettingsTab", () => { ); await waitFor(() => - expect(client.doesServerSupportUnstableFeature).toHaveBeenCalled(), + expect(screen.queryByText(/Media key rotation:/)).not.toBeInTheDocument() ); - expect(screen.queryByText(/Media key rotation:/)).not.toBeInTheDocument(); }); }); });