Beispiel #1
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();
        }