@Feature(summary = "The user can change their password",
tcmsTestPlanIds = 5316, tcmsTestCaseIds = 86823)
@Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
@Category(BasicAcceptanceTest.class)
public void changePasswordSuccessful() throws Exception {
DashboardBasePage dashboard = new LoginWorkFlow()
.signIn("translator", "translator")
.goToSettingsTab()
.gotoSettingsAccountTab()
.typeOldPassword("translator")
.typeNewPassword("newpassword")
.clickUpdatePasswordButton();
dashboard.expectNotification(DashboardAccountTab.PASSWORD_UPDATE_SUCCESS);
dashboard.logout();
assertThat(new BasicWorkFlow().goToHome().hasLoggedIn()).isFalse()
.as("User is logged out");
DashboardBasePage dashboardPage = new LoginWorkFlow()
.signIn("translator", "newpassword");
assertThat(dashboardPage.hasLoggedIn()).isTrue()
.as("User has logged in with the new password");
}