public void CheckSuccessfulChangePassword() { var accountSettingsInPage = new AccountSettingsInPage(_webDriver); var singInPage = new SingInPage(_webDriver); accountSettingsInPage.GoToSingInPage(); accountSettingsInPage.ClickEditPassword(); Thread.Sleep(1000); accountSettingsInPage .SetPassword("QwE147AsD@--") .SetNewPassword("QwE147AsD@-") .SetReTypeNewPassword("QwE147AsD@-"); accountSettingsInPage.ClickSaveChanges(); Thread.Sleep(1000); accountSettingsInPage.ClickLogout(); singInPage.GoToSingInPage() .SetEmail("*****@*****.**") .SetPassword("QwE147AsD@-") .ClickSingUp(); Thread.Sleep(3000); var actualMessage = _webDriver.Url; Assert.AreEqual("https://newbookmodels.com/join/company?goBackUrl=%2Fexplore", actualMessage); }
public void CheckSuccessfulLogOut() { var accountSettingsInPage = new AccountSettingsInPage(_webDriver); accountSettingsInPage.GoToSingInPage(); accountSettingsInPage.ClickLogout(); Thread.Sleep(1000); var actualResult = _webDriver.Url; Assert.AreEqual("https://newbookmodels.com/auth/signin", actualResult); }