public void OrganizationUnitDeleteTest() { organizatonUnitPage.AssertDepartments(); this.organizatonUnitPage.Marketing.Click(); AdminPanelHelpMethods.RightClick(organizatonUnitPage.Marketing, this.Driver); organizatonUnitPage.DeleteUnit.Click(); Thread.Sleep(500); organizatonUnitPage.DoNotDelete.Click(); }
public void OrganizationUnitAddTest() { organizatonUnitPage.AssertDepartments(); AdminPanelHelpMethods.RightClick(organizatonUnitPage.Marketing, this.Driver); organizatonUnitPage.AddUnit.Click(); var unit = AccessExcelData.GetTestData<OrganizationUnit>("TestName", "Sanity", "Units", AdminPanelConstants.ApplicationXlsxFilename); this.organizatonUnitPage.FillUnit(unit, "add"); this.organizatonUnitPage.Reject.Click(); }
public void OrganizationUnitUpdateTest() { organizatonUnitPage.AssertDepartments(); this.organizatonUnitPage.Marketing.Click(); AdminPanelHelpMethods.RightClick(organizatonUnitPage.Marketing, this.Driver); organizatonUnitPage.UpdateUnit.Click(); Thread.Sleep(500); organizatonUnitPage.AssertUnitName("Маркетинг"); var unit = AccessExcelData.GetTestData<OrganizationUnit>("TestName", "Sanity", "Units", AdminPanelConstants.ApplicationXlsxFilename); this.organizatonUnitPage.FillUnit(unit, "change"); this.organizatonUnitPage.Reject.Click(); }