Update Common Issues authored by Henry Page's avatar Henry Page
......@@ -20,3 +20,9 @@ To ensure forms have a `_csrf` field, either make sure the form uses `th:action`
Usually in Queue, during the first start-up.
##### Solution:
There is a setting in `application.yaml` called `test-connection` in the `mail` section. Make sure this is set to `false`.
## Pipeline/Build failure when using view assertions
##### Where?
In Queue. When writing an assertion about the expected view, you might get <error/500> instead. Occasionally, the wrong spring context is initialized.
##### Solution:
Add `@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)` to the top of the test class to 'refresh' the Application Context.
\ No newline at end of file