I have two unit tests that fail because of "[RuntimeException: Missing CSRF Token]":
running(testServer(3333, provideFakeApplication()), () -> { assertThat(WS.url("http://localhost:3333").get().get(3000).getStatus() ).isEqualTo(OK);
and
running(testServer(3333, provideFakeApplication()), HTMLUNIT, browser -> { browser.goTo("http://localhost:3333"); assert....
How to add a session with a CSRF token in WS.url and browser.goTo?
Tests try to find a page with a form.
source share