class PublicHomepage { visit ( ) { cy . visit ( "/" ) ; } visitWithDummyData ( fixture ) { return cy . fixture ( fixture ) . then ( ( homepage ) => { cy . intercept ( "GET" , "/prod/public/homepage" , homepage ) ; cy . intercept ( { method : "GET" , url : "/prod/public/settings" , } ) . as ( "publicSettingsRequest" ) ; cy . visit ( "/" ) ; cy . wait ( [ "@publicSettingsRequest" ] ) ; } ) ; } } export default PublicHomepage ;