I am writing an integration test to verify if OptimisticLockException is well handled.
In pages.xml I added
<message severity="warn">Another user changed the same data, please try again</message>
In the console I can see that this exception is thrown, so the test is well writen. But I don't know what to do to verify that the user is redirected to error.xhtml.
Moreover, even though I added before the test
the test fails.
Retrieving data ...