Replace test ID tests

This commit is contained in:
Half-Shot 2025-06-23 08:57:07 +01:00
parent 452ff3b615
commit 782921f5ac
2 changed files with 5 additions and 5 deletions

View File

@ -347,7 +347,7 @@ describe("<Notifications />", () => {
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();

View File

@ -113,10 +113,10 @@ describe("<VoiceUserSettingsTab />", () => {
});
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", () => {