testFaceletError
setTimeout 120000
open /nuxeo/logout
open /nuxeo/
waitForOpensocialGadgetsToLoad content 60000
verifyElementPresent link=Go to error page
clickAndWait link=Go to error page
clickAndWait link=Error ui:include not found
verifyTextPresent ERROR: facelet not found at '/path/to/non/existing/template'
verifyElementNotPresent link=Back to home page
open /nuxeo/
waitForOpensocialGadgetsToLoad content 60000
clickAndWait link=Go to error page
clickAndWait link=Error ui:include relative not found
verifyTextPresent ERROR: facelet not found at '/localhost/nuxeo/error_test_web/path/to/non/existing/template'
verifyElementNotPresent link=Back to home page
open /nuxeo/
waitForOpensocialGadgetsToLoad content 60000
clickAndWait link=Go to error page
clickAndWait link=Error ui:decorate not found
verifyTextPresent ERROR: facelet not found at '/path/to/non/existing/template'
verifyElementNotPresent link=Back to home page
open /nuxeo/
waitForOpensocialGadgetsToLoad content 60000
clickAndWait link=Go to error page
clickAndWait link=Error ui:composition not found
verifyTextPresent ERROR: facelet not found at '/path/to/non/existing/template'
verifyElementNotPresent link=Back to home page
open /nuxeo/
waitForOpensocialGadgetsToLoad content 60000
clickAndWait link=Go to error page
clickAndWait link=Error ui:include invalid
verifyTextNotPresent ERROR: facelet not found
verifyElementPresent link=Back to home page
open /nuxeo/
waitForOpensocialGadgetsToLoad content 60000
clickAndWait link=Go to error page
clickAndWait link=Error ui:include relative invalid
verifyTextNotPresent ERROR: facelet not found
verifyElementPresent link=Back to home page