fix tests

This commit is contained in:
Timo K
2026-04-09 17:12:21 +02:00
parent 9528c4f837
commit 6be06de153
4 changed files with 32 additions and 6 deletions

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);