File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11describe ( 'Vite React Typescript Template Test Suite' , ( ) => {
22 it ( 'should navigate to about page' , ( ) => {
33 cy . visit ( '/' ) ;
4- cy . get ( '.MuiCardHeader-content > .MuiTypography-root' ) . should ( 'contain.text' , 'Home Page' ) ;
4+ cy . findByRole ( 'heading' , { level : 5 } ) . should ( 'contain.text' , 'Home Page' ) ;
55 cy . get ( 'button>a:contains("About")' ) . click ( ) ;
6- cy . get ( '.MuiCardHeader-content > .MuiTypography-root' ) . should ( 'contain.text' , 'About Page' ) ;
6+ cy . findByRole ( 'heading' , { level : 5 } ) . should ( 'contain.text' , 'About Page' ) ;
77 } ) ;
88
99 it ( 'should perform counter operations' , ( ) => {
@@ -45,7 +45,7 @@ describe('Vite React Typescript Template Test Suite', () => {
4545 cy . get ( '.Counter [role="note"]' ) . should ( 'contain.text' , 'count is -1' ) ;
4646
4747 cy . get ( 'button>a:contains("About")' ) . click ( ) ;
48- cy . get ( '.MuiCardHeader-content > .MuiTypography-root' ) . should ( 'contain.text' , 'About Page' ) ;
48+ cy . findByRole ( 'heading' , { level : 5 } ) . should ( 'contain.text' , 'About Page' ) ;
4949
5050 cy . get ( '.Counter [role="note"]' ) . should ( 'contain.text' , 'count is -1' ) ;
5151 } ) ;
You can’t perform that action at this time.
0 commit comments