Update DeveloperSettingsTab.test.tsx

This commit is contained in:
Timo K.
2026-08-28 15:38:57 +02:00
parent 17d9d19c91
commit 17231e545c
+5 -10
View File
@@ -434,12 +434,10 @@ describe("DeveloperSettingsTab", () => {
); );
await waitFor(() => await waitFor(() =>
expect(client.doesServerSupportUnstableFeature).toHaveBeenCalled(),
);
expect( expect(
screen.getByText(/Media key rotation: active \(5 participants\)/), screen.getByText(/Media key rotation: active \(5 participants\)/),
).toBeInTheDocument(); ).toBeInTheDocument()
);
}); });
it("displays suppressed status when key rotation is suppressed", async () => { it("displays suppressed status when key rotation is suppressed", async () => {
@@ -459,14 +457,12 @@ describe("DeveloperSettingsTab", () => {
); );
await waitFor(() => await waitFor(() =>
expect(client.doesServerSupportUnstableFeature).toHaveBeenCalled(),
);
expect( expect(
screen.getByText( screen.getByText(
/Media key rotation: suppressed, participant limit reached \(50 participants\)/, /Media key rotation: suppressed, participant limit reached \(50 participants\)/,
), ),
).toBeInTheDocument(); ).toBeInTheDocument()
);
}); });
it("does not render KeyRotationStatus when not in a call", async () => { it("does not render KeyRotationStatus when not in a call", async () => {
@@ -483,10 +479,9 @@ describe("DeveloperSettingsTab", () => {
); );
await waitFor(() => await waitFor(() =>
expect(client.doesServerSupportUnstableFeature).toHaveBeenCalled(), expect(screen.queryByText(/Media key rotation:/)).not.toBeInTheDocument()
); );
expect(screen.queryByText(/Media key rotation:/)).not.toBeInTheDocument();
}); });
}); });
}); });