diff --git a/test/unit-tests/components/views/settings/Notifications-test.tsx b/test/unit-tests/components/views/settings/Notifications-test.tsx index 1566013aba..6341a105fd 100644 --- a/test/unit-tests/components/views/settings/Notifications-test.tsx +++ b/test/unit-tests/components/views/settings/Notifications-test.tsx @@ -347,7 +347,7 @@ describe("", () => { it("renders switches correctly", async () => { await getComponentAndWait(); - expect(screen.getByTestId("notif-master-switch")).toBeInTheDocument(); + expect(screen.getByLabelText("Enable notifications for this account")).toBeInTheDocument(); expect(screen.getByTestId("notif-device-switch")).toBeInTheDocument(); expect(screen.getByTestId("notif-setting-notificationsEnabled")).toBeInTheDocument(); expect(screen.getByTestId("notif-setting-notificationBodyEnabled")).toBeInTheDocument(); diff --git a/test/unit-tests/components/views/settings/tabs/user/VoiceUserSettingsTab-test.tsx b/test/unit-tests/components/views/settings/tabs/user/VoiceUserSettingsTab-test.tsx index d4519d429a..b30ed7a716 100644 --- a/test/unit-tests/components/views/settings/tabs/user/VoiceUserSettingsTab-test.tsx +++ b/test/unit-tests/components/views/settings/tabs/user/VoiceUserSettingsTab-test.tsx @@ -113,10 +113,10 @@ describe("", () => { }); it("renders audio processing settings", () => { - const { getByTestId } = render(getComponent()); - expect(getByTestId("voice-auto-gain")).toBeTruthy(); - expect(getByTestId("voice-noise-suppression")).toBeTruthy(); - expect(getByTestId("voice-echo-cancellation")).toBeTruthy(); + const { getByRole } = render(getComponent()); + expect(getByRole("switch", { name: "Automatically adjust the microphone volume" })).toBeTruthy(); + expect(getByRole("switch", { name: "Noise suppression" })).toBeTruthy(); + expect(getByRole("switch", { name: "Echo cancellation" })).toBeTruthy(); }); it("sets and displays audio processing settings", () => {