public void Can_Delete_Account() { #region TestData const string firstAndLastNames = "Siiidenko Alexander"; #endregion var searchPage = new SearchResultPage(); var profilePage = new ProfilePage(); searchPage.FillSearchField(firstAndLastNames); searchPage.SearchSubmit(); searchPage.ChoosePersonFromSearchList(); profilePage.DeleteWrestler(); profilePage.ConfirmDeleteUser(); searchPage.SecondSearch(); Assert.IsFalse(SearchResultPage.IsAtInEmptyTable, "Your account was not deleted"); }
public void Can_Update_Account() { #region TestData const string firstAndLastNames = "Sidenko Alexander"; #endregion var searchPage = new SearchResultPage(); var profilePage = new ProfilePage(); searchPage.FillSearchField(firstAndLastNames); searchPage.SearchSubmit(); searchPage.ChoosePersonFromSearchList(); profilePage.ClickUploadPhotoButton(); profilePage.ChoosePhotoFromPC(); searchPage.GoToWrestlerTab(); searchPage.SecondSearch(); Assert.IsTrue(SearchResultPage.DoesPhotoLabelChanged, "Photo was not downloaded. Please, try again"); }