Changes
Page history
Update Common Issues
authored
Mar 01, 2023
by
Henry Page
Show whitespace changes
Inline
Side-by-side
Common-Issues.md
View page @
73baf3fe
...
...
@@ -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