import podcasts from '../../../src/config/podcasts' ; const slugs = podcasts . map ( ( podcast ) => podcast . slug ) ; describe ( 'Podcasts' , ( ) => { beforeEach ( ( ) => { cy . visit ( `/podcasts` ) ; } ) ; it ( 'should render' , ( ) => { cy . get ( '[data-cy="podcasts-view"]' ) . should ( 'be.visible' ) ; slugs . map ( ( slug ) => cy . get ( `[data-cy="${ slug }-podcast"]` ) . should ( 'be.visible' ) ) ; } ) ; } ) ;