コード例 #1
0
 public void OrganizationUnitDeleteTest()
 {
     organizatonUnitPage.AssertDepartments();
     this.organizatonUnitPage.Marketing.Click();
     AdminPanelHelpMethods.RightClick(organizatonUnitPage.Marketing, this.Driver);
     organizatonUnitPage.DeleteUnit.Click();
     Thread.Sleep(500);
     organizatonUnitPage.DoNotDelete.Click();
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 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();
 }