public override void TestInitialize() { this.usersPage = new UsersPage(); LoginSteps.LoginAdmin(); NavigateTo.Page(this.usersPage); this.Browser.WaitUntilReady(); }
public void FilterPopupCancelButton_ShouldCloseThePopup() { LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); this.usersPage.OpenFilteringPopUp(); this.usersPage.FilterPopup.Elements.PopupCancelButton.Click(); this.usersPage.FilterPopup.Validator.FilterUsersPopupIsClosed(); }
public void FilterUsersByInvalidId_ShouldResultAnError() { LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); var id = this.usersPage.GetFirstUserId(); this.usersPage.FilterUsersById(id + 10); this.usersPage.FilterPopup.Validator.FilterUsersPopupIsOpened(); }
public void FilterUsersByEmail_ShouldProceedCorrectly() { LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); var email = this.usersPage.GetFirstUserEmail(); this.usersPage.FilterUsersByEmail(email); this.usersPage.Validator.UsersPresentByEmail(email); }
public void FilterUsersByUsername_ShouldProceedCorrectly() { LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); var username = this.usersPage.GetFirstUserUsername(); this.usersPage.FilterUsersByUsername(username); this.usersPage.Validator.UsersPresentByUsername(username); }
public void FilterUsersById_ShouldProceedCorrectly() { LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); var id = this.usersPage.GetFirstUserId(); this.usersPage.FilterUsersById(id); this.usersPage.Validator.UsersPresentdById(id); }
public void DeleteUserFuction_ShouldDeleteUsersSuccessfully() { var username = this.registrationPage.RegisterUniqueUser(RegistrationUsers.GetValidTemplate()); LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); this.usersPage.DeleteUser(username); this.usersPage.Validator.UserIsDeleted(username); }
public void EditUserButton_ShouldOpenEditFormCorrectly() { LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); this.usersPage.OpenFirstUserEditPopUp(); string username = this.usersPage.GetFirstUserUsername(); this.usersPage.EditPopup.Validator.EditUserPopupIsOpened(username); }
public void CancelEditUserButton_ShouldCloseEditFormCorrectly() { LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); this.usersPage.OpenFirstUserEditPopUp(); string username = this.usersPage.GetFirstUserUsername(); this.usersPage.EditPopup.Validator.EditUserPopupIsOpened(username); this.usersPage.EditPopup.Elements.CancelButton.Click(); this.usersPage.EditPopup.Validator.EditUserPopupIsClosed(); }
public void AddRoleWithValidData() { LoginSteps.LoginAdmin(); NavigateTo.Url(this.rolesPage.Url); this.rolesPage.Elements.AnchorAddNewRole.Click(); this.rolesPage.Elements.Name.Text = VadlidName; this.rolesPage.Elements.UpdateButton.Click(); var text = this.Browser.ViewSourceString; bool result = text.Contains(VadlidName); Assert.IsTrue(result); }
public void AddTownWithValidData() { LoginSteps.LoginAdmin(); NavigateTo.Url(this.TownsPage.Url); // this.Browser.RefreshDomTree(); //this.TownsPage.Elements.AnchorAddNewTown.Wait.ForExists(5000); this.TownsPage.Elements.AnchorAddNewTown.Click(); this.TownsPage.Elements.NameBulgarian.Text = ValidNameBulgarian; this.TownsPage.Elements.NameEnglish.Text = ValidNameEnglish; this.TownsPage.Elements.UpdateButton.Click(); var text = this.Browser.ViewSourceString; bool result = text.Contains(ValidNameBulgarian); Assert.IsTrue(result); }
public void AddNewUniversityWithValidData() { LoginSteps.LoginAdmin(); NavigateTo.Url(this.universitiesPage.Url); this.universitiesPage.Elements.AnchorAddNewTown.Click(); this.universitiesPage.Elements.Name.Text = ValidName; this.universitiesPage.Elements.Website.Text = ValidWebSite; // this.universitiesPage.Elements.Order.Text = ValidOrder; Thread.Sleep(10000); this.Browser.RefreshDomTree(); this.universitiesPage.Elements.UpdateButton.Click(); var text = this.Browser.ViewSourceString; bool result = text.Contains(ValidName); Assert.IsTrue(result); }
public void EditUserWithValidDetails_ShouldProceedCorrectly() { LoginSteps.LoginAdmin(); this.usersPage.NavigateTo(); this.usersPage.EditFirstUser(TestUsersDetails.GetValidDetails()); }