예제 #1
0
        private void SubmitForApprovalStep(string name)
        {
            _myDesign.CheckGoToActions(name);

            var designName = _oneDesign.GetDesignName(name);

            Assert.IsTrue(!string.IsNullOrEmpty(designName) && designName.IsEquals(name), "Design name is displayed correctly");

            _oneDesign.SubmitApprovalWorkflow();
        }
예제 #2
0
        public void Check_SavingDataAutomatically(Dictionary <string, string> setupProduct)
        {
            AdminSiteSwitchAutoSave(() => AdminConfigExtension(), () => AdminCustomA4PosterProduct(setupProduct["ProductName"]));//TODO

            UserSiteLoginStep();

            _userContentStart.NavigateTo();
            var documentBefore = _userContentStart.SearchDocument(setupProduct["ProductName"]);

            Assert.IsTrue(!string.IsNullOrEmpty(documentBefore.Id));

            _userContentStart.SelectDocument(documentBefore.Id);

            CheckAutoSaveForViewDesignOptions();
            CheckAutoSaveForViewTextOptions();
            CheckAutoSaveForViewFooterOptions();

            _userEditFormFilling.ClickToNextStep();
            _userEditPrinting.ClickToNextStep();
            _userEditPrinting.ClickToBypassCompleteRequiredFields();

            _userEditFinish.EnterOrderName(setupProduct["ProductDescription"]);
            _userEditFinish.ClickToGenerateDocument();

            Assert.IsTrue(_oneDesign.GetDesignName().IsEquals(setupProduct["ProductDescription"].EncodeSpecialCharacters()));
        }