@Test public void shouldDisplayErrorMessageIfLoginFails() throws MalformedURLException, InterruptedException { // given pageOne.openPageOne(domainURL); // when pageOne.openLoginToggle(); pageOne.clickLoginLink(); pageOne.loginAsUser(COMMON_USER, INCORRECT_PASSWORD); // then assertThat(pageOne.notificationMessage(), is(INCORRECT_CREDENTIALS)); }