Skip to content

Commit bbd9cf3

Browse files
committed
change
1 parent d6eb23f commit bbd9cf3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

js/slider/Slider.test.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -454,26 +454,26 @@ describe("Accessibility", () => {
454454
test("number input has correct aria-label", async () => {
455455
const { getByTestId } = await render(Slider, {
456456
...default_props,
457-
label: "Volume"
457+
label: "Range"
458458
});
459459

460460
const number_input = getByTestId("number-input") as HTMLInputElement;
461461
expect(number_input.getAttribute("aria-label")).toBe(
462-
"number input for Volume"
462+
"number input for Range"
463463
);
464464
});
465465

466466
test("range input has correct aria-label", async () => {
467467
const { container } = await render(Slider, {
468468
...default_props,
469-
label: "Volume"
469+
label: "Range"
470470
});
471471

472472
const range_input = container.querySelector(
473473
'input[type="range"]'
474474
) as HTMLInputElement;
475475
expect(range_input.getAttribute("aria-label")).toBe(
476-
"range slider for Volume"
476+
"range slider for Range"
477477
);
478478
});
479479

@@ -483,8 +483,6 @@ describe("Accessibility", () => {
483483
});
484484

485485
const reset_btn = getByTestId("reset-button");
486-
expect(reset_btn.getAttribute("aria-label")).toBe(
487-
"Reset to default value"
488-
);
486+
expect(reset_btn.getAttribute("aria-label")).toBe("Reset to default value");
489487
});
490488
});

0 commit comments

Comments
 (0)