#{selenium 'Test the errors pages'} // 404 open('@{HasErrors.willBeNotFound()}') assertTextPresent('Not found') assertTextPresent('Hop') // Make sure end of content survives with 2-byte utf-8-chars in error-template assertTextPresent('ÆØÅ') // 500 open('@{HasErrors.willThrowError()}') assertTextPresent('Execution exception') assertTextPresent('In /app/controllers/HasErrors.java (around line 15)') // Make sure end of content survives with 2-byte utf-8-chars in error-template assertTextPresent('ÆØÅ') // 500 open('@{HasErrors.willThrowErrorToo()}') assertTextPresent('Template compilation error') assertTextPresent(' is not opened.') // 404 open('/nimp') assertTextPresent('Not found') assertTextPresent('GET /nimp') // 404 open('/application/nimp') assertTextPresent('Not found') assertTextPresent('application.nimp action not found') #{/selenium}