|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
11 | | - <test name="CatalogProductListWidgetOrderTest"> |
| 11 | + <test name="CatalogProductListWidgetOrderTest" deprecated="Use CatalogProductListCheckWidgetOrderTest instead"> |
12 | 12 | <annotations> |
13 | 13 | <features value="CatalogWidget"/> |
14 | 14 | <stories value="MC-5905: Wrong sorting on Products component"/> |
15 | | - <title value="Checking order of products in the 'catalog Products List' widget"/> |
| 15 | + <title value="Deprecated. Checking order of products in the 'catalog Products List' widget"/> |
16 | 16 | <description value="Check that products are ordered with recently added products first"/> |
17 | 17 | <severity value="MAJOR"/> |
18 | 18 | <testCaseId value="MC-13794"/> |
19 | 19 | <group value="CatalogWidget"/> |
20 | 20 | <group value="WYSIWYGDisabled"/> |
| 21 | + <skip> |
| 22 | + <issueId value="DEPRECATED">Use CatalogProductListCheckWidgetOrderTest instead</issueId> |
| 23 | + </skip> |
21 | 24 | </annotations> |
22 | 25 | <before> |
23 | 26 | <createData entity="SimpleSubCategory" stepKey="simplecategory"/> |
|
37 | 40 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
38 | 41 | <actionGroup ref="EnabledWYSIWYGActionGroup" stepKey="enableWYSIWYG"/> |
39 | 42 | </before> |
40 | | - <after> |
41 | | - <actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/> |
42 | | - <deleteData createDataKey="createPreReqPage" stepKey="deletePreReqPage" /> |
43 | | - <deleteData createDataKey="simplecategory" stepKey="deleteSimpleCategory"/> |
44 | | - <deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/> |
45 | | - <deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/> |
46 | | - <deleteData createDataKey="createThirdProduct" stepKey="deleteThirdProduct"/> |
47 | | - <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
48 | | - </after> |
49 | 43 | <!--Open created cms page--> |
50 | 44 | <comment userInput="Open created cms page" stepKey="commentOpenCreatedCmsPage"/> |
51 | 45 | <actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage1"> |
52 | | - <argument name="CMSPage" value="$createPreReqPage$"/> |
| 46 | + <argument name="CMSPage" value="$$createPreReqPage$$"/> |
53 | 47 | </actionGroup> |
54 | 48 | <!--Add widget to cms page--> |
55 | 49 | <comment userInput="Add widget to cms page" stepKey="commentAddWidgetToCmsPage"/> |
56 | | - <waitForElementVisible selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="waitInsertWidgetIconVisible"/> |
57 | 50 | <click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidgetIcon" /> |
58 | 51 | <waitForPageLoad stepKey="waitForPageLoad1" /> |
59 | | - <waitForElementVisible selector="{{WidgetSection.WidgetType}}" stepKey="waitForWidgetTypeSelectorVisible"/> |
60 | 52 | <selectOption selector="{{WidgetSection.WidgetType}}" userInput="Catalog Products List" stepKey="selectCatalogProductsList" /> |
61 | 53 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear1" /> |
62 | | - <waitForElementVisible selector="{{WidgetSection.AddParam}}" stepKey="waitForAddParamBtnVisible"/> |
63 | 54 | <click selector="{{WidgetSection.AddParam}}" stepKey="clickAddParamBtn" /> |
64 | 55 | <waitForElementVisible selector="{{WidgetSection.ConditionsDropdown}}" stepKey="waitForDropdownVisible"/> |
65 | 56 | <selectOption selector="{{WidgetSection.ConditionsDropdown}}" userInput="Category" stepKey="selectCategoryCondition" /> |
66 | 57 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear2" /> |
67 | | - <waitForElementVisible selector="{{WidgetSection.RuleParam}}" stepKey="waitForRuleParamVisible"/> |
68 | 58 | <click selector="{{WidgetSection.RuleParam}}" stepKey="clickRuleParam" /> |
69 | 59 | <waitForElementVisible selector="{{WidgetSection.Chooser}}" stepKey="waitForElement" /> |
70 | 60 | <click selector="{{WidgetSection.Chooser}}" stepKey="clickChooser" /> |
71 | 61 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear3" /> |
72 | | - <waitForElementVisible selector="{{WidgetSection.PreCreateCategory('$simplecategory.name$')}}" stepKey="waitForCategoryVisible" /> |
73 | | - <click selector="{{WidgetSection.PreCreateCategory('$simplecategory.name$')}}" stepKey="selectCategory" /> |
| 62 | + <click selector="{{WidgetSection.PreCreateCategory('$$simplecategory.name$$')}}" stepKey="selectCategory" /> |
74 | 63 | <click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidget" /> |
75 | 64 | <waitForPageLoad stepKey="waitForPageLoad2" /> |
76 | 65 | <!--Save cms page and go to Storefront--> |
77 | 66 | <comment userInput="Save cms page and go to Storefront" stepKey="commentSaveCmsPageAndGoToStorefront"/> |
78 | | - <waitForElementVisible selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="waitForExpandButtonMenuVisible"/> |
79 | 67 | <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandButtonMenu"/> |
80 | 68 | <waitForElementVisible selector="{{CmsNewPagePageActionsSection.splitButtonMenu}}" stepKey="waitForSplitButtonMenuVisible"/> |
81 | 69 | <click selector="{{CmsNewPagePageActionsSection.savePage}}" stepKey="clickSavePage"/> |
82 | 70 | <see userInput="You saved the page." stepKey="seeSuccessMessage"/> |
83 | | - <amOnPage url="$createPreReqPage.identifier$" stepKey="amOnPageTestPage"/> |
| 71 | + <amOnPage url="$$createPreReqPage.identifier$$" stepKey="amOnPageTestPage"/> |
84 | 72 | <waitForPageLoad stepKey="waitForPageLoad3" /> |
85 | 73 | <!--Check order of products: recently added first--> |
86 | 74 | <comment userInput="Check order of products: recently added first" stepKey="commentCheckOrderOfProductsRecentlyAddedFirst"/> |
87 | | - <waitForElementVisible selector="{{InsertWidgetSection.checkElementStorefrontByName('1','$createThirdProduct.name$')}}" stepKey="waitForThirdProductVisible"/> |
88 | | - <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('1','$createThirdProduct.name$')}}" stepKey="seeElementByName1"/> |
89 | | - <waitForElementVisible selector="{{InsertWidgetSection.checkElementStorefrontByName('2','$createSecondProduct.name$')}}" stepKey="waitForSecondProductVisible"/> |
90 | | - <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('2','$createSecondProduct.name$')}}" stepKey="seeElementByName2"/> |
91 | | - <waitForElementVisible selector="{{InsertWidgetSection.checkElementStorefrontByName('3','$createFirstProduct.name$')}}" stepKey="waitForFirstProductVisible"/> |
92 | | - <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('3','$createFirstProduct.name$')}}" stepKey="seeElementByName3"/> |
| 75 | + <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('1','$$createThirdProduct.name$$')}}" stepKey="seeElementByName1"/> |
| 76 | + <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('2','$$createSecondProduct.name$$')}}" stepKey="seeElementByName2"/> |
| 77 | + <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('3','$$createFirstProduct.name$$')}}" stepKey="seeElementByName3"/> |
| 78 | + <after> |
| 79 | + <actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/> |
| 80 | + <deleteData createDataKey="createPreReqPage" stepKey="deletePreReqPage" /> |
| 81 | + <deleteData createDataKey="simplecategory" stepKey="deleteSimpleCategory"/> |
| 82 | + <deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/> |
| 83 | + <deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/> |
| 84 | + <deleteData createDataKey="createThirdProduct" stepKey="deleteThirdProduct"/> |
| 85 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 86 | + </after> |
93 | 87 | </test> |
94 | 88 | </tests> |
0 commit comments