Esempio n. 1
0
        public void DesignOutputs_SuccessfullyDownloaded_WithoutConfirm_WhenProductHadNewReleaseWithMaintainOriginalOption(string templateName, Dictionary <string, bool> settings)
        {
            try
            {
                AdminLoginStep(AdminAccount);

                _adminProducts.Open();

                _adminProducts.GoToAdminProductDetails(templateName);

                _adminProductDetails.ClickToChangeSetting();

                _adminProductDetails.UpdateSettings();

                _adminProductDetails.ClickToRelease();

                _adminProductDetails.UpdateForMaintainOnly();

                _adminProductDetails.UpdateSettings(true);

                LoginStep(_returnPage);

                VerifyDesignStatus($"{templateName}_{_designNamePrefix}");

                PlaceOrderStep($"{templateName}_{_designNamePrefix}", settings["IsKit"], false);
            }
            finally
            {
                var dir = new DirectoryInfo(NewAppTestDir);
                foreach (var file in dir.GetFiles())
                {
                    file.Delete();
                }
            }
        }
Esempio n. 2
0
        public void Check_Changing_Text_AdminProductRetire()
        {
            ChangeRMLayoutForAdminSite();

            _adminProductsPage.Open();
            _adminProductsPage.ClickToAdvanceFlyer();

            _adminProductDetails.ClickToChangeSetting();
            _adminProductDetails.SelectSubmitJobCheckBox();
            _adminProductDetails.ClickDownloadRadio3();
            _adminProductDetails.SettingPriceNone();
            _adminProductDetails.UpdateSettings();
            _adminProductDetails.ClickToRelease();

            var secondMessage = "Users can order and reorder products but the product will keep the original product settings. So if you have made any changes to the product in Studio or Storefront (e.g. added a new variable to the product), then users reordering or editing products they have previously created will not see the new changes. This option should be used for releases related to configuration changes and no migration is needed e.g. Product data changes or reconfiguring FormFilling";
            var thirdMessage  = "This will update the products in the basket and any reordered product to the live release settings. However this release can cause validation errors and could in rare cases disable the product from being ordered. This option should be used for design updates and user will be charged another click for the migration\r\nWe strongly recommend that this setting is not used for ‘kit’ products.";

            Assert.IsTrue(_adminProductRetired.GetTipNoIndentsTexts()[2].IsEquals(secondMessage));
            Assert.IsTrue(_adminProductRetired.GetTipNoIndentsTexts()[3].IsEquals(thirdMessage));

            ChangeDefaultForAdminSite();
        }