export default class TechnicalErrorPage { checkIsVisible ( ) { cy . get ( 'h1' ) . contains ( 'Erreur' ) ; } checkErrorCode ( errorCode ) { cy . get ( 'pre' ) . contains ( `code : ${ errorCode }` ) ; } checkErrorMessage ( errorMessage ) { cy . get ( 'pre' ) . contains ( `message: ${ errorMessage }` ) ; } checkSessionNumberVisible ( ) { TODO cy . get ( 'div.detail-error-container > p:nth-child(3)' ) . invoke ( 'text' ) . should ( 'match' , /ID : [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ ) ; } }