license describe ( 'Book Reader Page' , ( ) => { beforeEach ( ( ) => { cy . loadTestEpubToDb ( ) . then ( ( bookId ) => cy . visit ( `/b/${ bookId }` ) ) ; } ) ; it ( 'loads book' , ( ) => { cy . get ( 'h1' ) . contains ( 'Sample Book (test.epub)' ) ; } ) ; } ) ;