File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments