コード例 #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");
        }
コード例 #3
0
        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");
        }
コード例 #4
0
        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");
        }