class PublishingGuidancePage { start ( ) { cy . intercept ( { method : "GET" , url : "/prod/settings" , } ) . as ( "settingsRequest" ) ; cy . get ( "button" ) . contains ( "Edit" ) . click ( ) ; cy . wait ( [ "@settingsRequest" ] ) ; } updateAcknowledgment ( newAcknowledgment ) { cy . get ( "h1" ) . contains ( "Edit publishing guidance" ) ; cy . get ( "textarea#publishingGuidance" ) . clear ( ) . type ( newAcknowledgment ) ; } submit ( ) { cy . intercept ( { method : "PUT" , url : "/prod/settings" , } ) . as ( "updateAcknowledgmentRequest" ) ; cy . intercept ( { method : "GET" , url : "/prod/settings" , } ) . as ( "settingsRequest" ) ; cy . get ( "form" ) . submit ( ) ; cy . wait ( [ "@updateAcknowledgmentRequest" , "@settingsRequest" , "@settingsRequest" , ] ) ; } } export default PublishingGuidancePage ;