Ejemplo n.º 1
0
        public void VerifyRowDeletion()
        {
            HomePage      homePage          = new HomePage(driverManager.driver);
            LoginPage     loginPage         = homePage.clickLoginButton();
            DashboardPage dashboardpage     = loginPage.Login("*****@*****.**", "admin");
            GigsPage      gigsPage          = dashboardpage.ClickGigsTab();
            string        firstExpiredRowId = gigsPage.ReturnId();
            DetailsPage   detailsPage       = gigsPage.ClickEyeButton();

            NUnit.Framework.Assert.IsTrue(detailsPage.IsExpiredPresent());
            GigsPage gigsPage2 = detailsPage.ClickDeleteButton();

            NUnit.Framework.Assert.IsTrue(gigsPage2.IsIdAbsent(firstExpiredRowId));
        }