Update DeveloperSettingsTab.test.tsx

This commit is contained in:
Timo K.
2026-08-28 15:38:57 +02:00
parent 17d9d19c91
commit 17231e545c

View File

@@ -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();
});
});
});