예제 #1
0
        public void DeleteNewUser()
        {
            MenuBar.GetMenuBar().ClickOnUsersListLabel();
            UsersListPage.GetUsersListPage().SelectNewUserToDelete();
            UsersListPage.GetUsersListPage().ClickOnDeleteUserButton();
            UsersListPage.GetUsersListPage().ConfirmDeleteUser();
            var logout = new Logout();

            logout.LogoutFromPage();
        }
예제 #2
0
        public void AddNewUser(string userName, string userEmail, string userPassword, string userPhone)
        {
            MenuBar.GetMenuBar().ClickOnUsersListLabel();
            UsersListPage.GetUsersListPage().ClickOnAddNewUserButton();
            AddNewUserPage.GetAddNewUserPage().EnterUserName(userName);
            AddNewUserPage.GetAddNewUserPage().EnterUserEmail(userEmail);
            AddNewUserPage.GetAddNewUserPage().EnterUserPassword(userPassword);
            AddNewUserPage.GetAddNewUserPage().ConformUserPassword(userPassword);
            AddNewUserPage.GetAddNewUserPage().ClickOnSaveNewUserButton();
            var logout = new Logout();

            logout.LogoutFromPage();
        }
예제 #3
0
        public void Test()
        {
            var logining = new Logining();

            logining.DoLogining(InputTestData.Login, InputTestData.Password);
            var addNewUser = new AddindNewUser();

            addNewUser.AddNewUser(InputTestData.NewUserName, InputTestData.NewUserEmail, InputTestData.NewUserPassword, InputTestData.NewUserPhone);
            logining.DoLogining(InputTestData.NewUserEmail, InputTestData.NewUserPassword);
            Assert.AreEqual(MenuBar.GetMenuBar().GetUserName(), InputTestData.NewUserName);
            var logout2 = new Logout();

            logout2.LogoutFromPage();
            var loginingAdm = new Logining();

            loginingAdm.DoLogining(InputTestData.Login, InputTestData.Password);
            var deleteUser = new DeleteUser();

            deleteUser.DeleteNewUser();
        }
예제 #4
0
 public void LogoutFromPage()
 {
     MenuBar.GetMenuBar().ClickOnLogoutDropdownMenu();
     MenuBar.GetMenuBar().ClickOnLogoutButton();
 }