describe ( 'Home page' , function ( ) { it ( 'renders correctly' , function ( ) { cy . visit ( '/' ) ; cy . contains ( 'Top 10 Movies Of All Time' ) ; const movies = cy . get ( '[data-testid="movie-table"] > tbody > tr' ) ; movies . should ( 'have.length' , 10 ) ; } ) ; } ) ;