コード例 #1
0
        public void AsAdminClickOnAdminButtonAndAccessUtilizatoriLink()
        {
            // Arrange
            HomePage        homePage        = new HomePage(Driver);
            LoginPage       loginPage       = new LoginPage(Driver);
            AdminPage       adminPage       = new AdminPage(Driver);
            UtilizatoriPage utilizatoriPage = new UtilizatoriPage(Driver);

            homePage.GoToAuthentication();

            //Act
            loginPage.AuthenticateUser("*****@*****.**", "password123");
            homePage.ClickOnAdministareLink();
            adminPage.ClickOnUtilizatoriLink();

            //Assert
            Assert.IsTrue(utilizatoriPage.VerifyIfUsersNamesAreDisplayed());
        }
コード例 #2
0
        public void AsAdminClickOnAdminButtonAndAccessUtilizatoriLinkAndEditOneUser()
        {
            // Arrange
            HomePage        homePage        = new HomePage(Driver);
            LoginPage       loginPage       = new LoginPage(Driver);
            AdminPage       adminPage       = new AdminPage(Driver);
            UtilizatoriPage utilizatoriPage = new UtilizatoriPage(Driver);

            homePage.GoToAuthentication();

            //Act
            loginPage.AuthenticateUser("*****@*****.**", "password123");
            homePage.ClickOnAdministareLink();
            adminPage.ClickOnUtilizatoriLink();
            utilizatoriPage.EditTest9User();

            //Assert
            Assert.IsTrue(utilizatoriPage.CheckIfActualizeazaUtilizatorButtonIsDisplayed());
        }