There should be some kind of assert here, may I suggest assertThat("Error message is shown",                 signInPage.waitForFieldErrors(), Matchers.hasItem("Login failed"));

(requires import static org.hamcrest.MatcherAssert.assertThat;)