@Test public void shouldSuccessfullyLogin() throws MalformedURLException, InterruptedException { // given pageOne.openPageOne(domainURL); // when pageOne.openLoginToggle(); pageOne.clickLoginLink(); pageOne.loginAsUser(COMMON_USER, DEFAULT_PASSWORD); // then assertThat(pageOne.isConfirmationDisplayed(LOGIN_CONFIRMATION_MESSAGE), is(true)); assertThat(pageOne.isMyAccountButtonAvailable(), is(true)); }