fix tests

This commit is contained in:
Timo K
2026-04-10 18:27:24 +02:00
parent 9528c4f837
commit 6be06de153
4 changed files with 32 additions and 6 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ describe("InCallView", () => {
const { getByRole } = createInCallView({ mediaDevices });
// The button should be visible. When current output is "speaker",
// the switcher targets "earpiece", so the tooltip label is "Handset".
const audioOutputBtn = getByRole("button", { name: "Handset" });
const audioOutputBtn = getByRole("switch", { name: "Handset" });
expect(audioOutputBtn).toBeVisible();
await user.click(audioOutputBtn);