public void BudgetReport_DeactivateModal_WS_1282() { if (!DataParser.ReturnExecution("WS_1282")) { Assert.Ignore(); } else { BudgetHomePage reportpage = InitialPage.Go().Logon().ClickLogin().NavigateToReports().ClickBudgetLeftMenu(); var editdetailsPage = reportpage.ClickEdit(1); Assert.AreEqual("ADD", reportpage.GetAddBtnTxt(), "Issuer Value is not the same"); Assert.AreEqual("SUBTRACT", reportpage.GetSubstratBtnTxt(), "Subtract Value is not the same"); Assert.AreEqual("DEACTIVATE", reportpage.GetDeactBtnTxt(), "Deactivate Value is not the same"); Assert.AreEqual("CLOSE", reportpage.GetBtnCloseTxt(), "close Value is not the same"); reportpage.ClickDeactivate(); editdetailsPage = reportpage.ClickEdit(1); Assert.AreEqual("Budget Active Status: false", editdetailsPage.GetDeactMsg(), "Deact Text is not the same as expected"); editdetailsPage.ClickActivate(); reportpage = editdetailsPage.ClickEdit(1); Assert.AreEqual("ADD", reportpage.GetAddBtnTxt(), "Issuer Value is not the same"); Assert.AreEqual("SUBTRACT", reportpage.GetSubstratBtnTxt(), "Subtract Value is not the same"); Assert.AreEqual("DEACTIVATE", reportpage.GetDeactBtnTxt(), "Deactivate Value is not the same"); Assert.AreEqual("CLOSE", reportpage.GetBtnCloseTxt(), "close Value is not the same"); reportpage.ClickClose(); } }
public void BudGetReport_EditModal_WS_1277() { if (!DataParser.ReturnExecution("WS_1277")) { Assert.Ignore(); } else { BudgetHomePage reportpage = InitialPage.Go().Logon().ClickLogin().NavigateToReports().ClickBudgetLeftMenu(); var balance = reportpage.GetAwardTable(1, 6); var editdetailsPage = reportpage.ClickEdit(1); Assert.AreEqual("ADD", reportpage.GetAddBtnTxt(), "Issuer Value is not the same"); Assert.AreEqual("SUBTRACT", reportpage.GetSubstratBtnTxt(), "Subtract Value is not the same"); Assert.AreEqual("DEACTIVATE", reportpage.GetDeactBtnTxt(), "Deactivate Value is not the same"); Assert.AreEqual("CLOSE", reportpage.GetBtnCloseTxt(), "close Value is not the same"); reportpage = editdetailsPage.EnterAmount("1000").ClickAdd(); var amount = balance + 1000; Assert.AreEqual(amount, reportpage.GetAwardTable(1, 6), "Budget Value is not the same"); } }