File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ import * as React from 'react' ;
2+ import Rating from '@material-ui/core/Rating' ;
3+
4+ export default function FocusVisibleRating ( ) {
5+ return < Rating name = "no-value-precise" precision = { 0.5 } value = { null } /> ;
6+ }
Original file line number Diff line number Diff line change @@ -100,6 +100,17 @@ async function main() {
100100 await page . keyboard . press ( 'ArrowLeft' ) ;
101101 await takeScreenshot ( { testcase, route : '/regression-Rating/FocusVisibleRating3' } ) ;
102102 } ) ;
103+
104+ it ( 'should handle focus-visible with precise ratings correctly' , async ( ) => {
105+ const index = routes . findIndex (
106+ ( route ) => route === '/regression-Rating/PreciseFocusVisibleRating' ,
107+ ) ;
108+ const testcase = await renderFixture ( index ) ;
109+ await page . keyboard . press ( 'Tab' ) ;
110+ await takeScreenshot ( { testcase, route : '/regression-Rating/PreciseFocusVisibleRating2' } ) ;
111+ await page . keyboard . press ( 'ArrowRight' ) ;
112+ await takeScreenshot ( { testcase, route : '/regression-Rating/PreciseFocusVisibleRating3' } ) ;
113+ } ) ;
103114 } ) ;
104115
105116 describe ( 'DateTimePicker' , ( ) => {
You can’t perform that action at this time.
0 commit comments