Пример #1
0
        public void Cannot_Search_Nonexistent_User()
        {
            #region TestData
            const string firstAndLastNames = "Ssdhcahcfo Trtr";
            #endregion

            var searchPage = new SearchResultPage();
            searchPage.FillSearchField(firstAndLastNames);
            searchPage.SearchSubmit();

            Assert.AreEqual(SearchResultPage.IsAtOnEmptyTable, "");
        }
Пример #2
0
		public void Can_Search_User()
		{
            #region TestData
            const string firstAndLastNames = "Sidenko Alexander";
            #endregion

            var searchPage = new SearchResultPage();
            searchPage.FillSearchField(firstAndLastNames);
            searchPage.SearchSubmit();

            Assert.AreEqual(SearchResultPage.FirstLine, "Sidenko Alexander Olegoeich");
        }
        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");
        }