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()); }
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()); }