|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | +<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 10 | + <actionGroup name="AdminOpenCreateNewWidgetsOfCMSStaticBlockActionGroup"> |
| 11 | + <annotations> |
| 12 | + <description>Open create new Widgets.</description> |
| 13 | + </annotations> |
| 14 | + <arguments> |
| 15 | + <argument name="WidgetType" type="string" defaultValue="Catalog Product Link"/> |
| 16 | + <argument name="WidgetTheme" type="string" defaultValue="Magento Luma"/> |
| 17 | + <argument name="WidgetDisplayOn" type="string"/> |
| 18 | + <argument name="RootCat" type="string" defaultValue="Default Category"/> |
| 19 | + <argument name="FirstSubCat" type="string"/> |
| 20 | + <argument name="SecondSubCat" type="string"/> |
| 21 | + <argument name="ThirdSubCat" type="string"/> |
| 22 | + <argument name="FourthSubCat" type="string"/> |
| 23 | + <argument name="FifthSubCat" type="string"/> |
| 24 | + </arguments> |
| 25 | + <amOnPage url="{{CmsNewWidgetsPage.url}}" stepKey="navigateToCreateWidgetsPage"/> |
| 26 | + <waitForPageLoad stepKey="waitForWidgetPageToLoad"/> |
| 27 | + <selectOption selector="{{CmsNewWidgetsSettingSection.WidgetType}}" userInput="{{WidgetType}}" stepKey="selectCMSStaticBlock" /> |
| 28 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear1"/> |
| 29 | + <selectOption selector="{{CmsNewWidgetsSettingSection.WidgetTheme}}" userInput="{{WidgetTheme}}" stepKey="selectTemplate" /> |
| 30 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear2"/> |
| 31 | + <click selector="{{CmsNewWidgetsSettingSection.ContinueButton}}" stepKey="clickContinueButton"/> |
| 32 | + <waitForPageLoad stepKey="waitForStorefrontPropertiesSectionToLoad"/> |
| 33 | + <click selector="{{CmsNewWidgetStoreforntPropertiesSection.AddLayout}}" stepKey="clickAddLayoutButton" /> |
| 34 | + <scrollTo selector="{{CmsNewWidgetStoreforntPropertiesSection.AddLayout}}" stepKey="scrollToAddLayoutTab" /> |
| 35 | + <waitForPageLoad stepKey="waitForAddLayoutTabToLoad"/> |
| 36 | + <selectOption selector="{{CmsNewWidgetUpdateLayoutSection.DisplayOn}}" userInput="{{WidgetDisplayOn}}" stepKey="selectDisplay"/> |
| 37 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear3" /> |
| 38 | + <selectOption selector="{{CmsNewWidgetUpdateLayoutSection.SpecificCategories}}" userInput="Specific Categories" stepKey="selectSpecificCategoryRadioButton"/> |
| 39 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.CategoryChooserButton}}" stepKey="clickCategoryChooserButton"/> |
| 40 | + <waitForPageLoad stepKey="waitForRootCategoryToLoad"/> |
| 41 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.BranchCat(RootCat)}}" stepKey="clickRootCat"/> |
| 42 | + <waitForPageLoad stepKey="waitForRootCategoryToExpand"/> |
| 43 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.BranchCat(FirstSubCat)}}" stepKey="clickFirstSubCat"/> |
| 44 | + <waitForPageLoad stepKey="waitForFirstSubCatToExpand"/> |
| 45 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.BranchCat(SecondSubCat)}}" stepKey="expandSecondSubCat"/> |
| 46 | + <waitForPageLoad stepKey="waitForSecondSubCatToExpand"/> |
| 47 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.BranchCat(ThirdSubCat)}}" stepKey="expandThirdFirstSubCat"/> |
| 48 | + <waitForPageLoad stepKey="waitForThirdSubCatToExpand"/> |
| 49 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.BranchCat(FourthSubCat)}}" stepKey="expandFourthSubCat"/> |
| 50 | + <waitForPageLoad stepKey="waitForFourthSubCatToExpand"/> |
| 51 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.BranchCat(FifthSubCat)}}" stepKey="expandFifthSubCat"/> |
| 52 | + <waitForPageLoad stepKey="waitForFifthSubCatToExpand"/> |
| 53 | + <grabMultiple selector="{{CmsNewWidgetUpdateLayoutSection.CountAllNestedCat}}" stepKey="countNestedCategory"/> |
| 54 | + <assertCount stepKey="check"> |
| 55 | + <expectedResult type="int">7</expectedResult> |
| 56 | + <actualResult type="variable">countNestedCategory</actualResult> |
| 57 | + </assertCount> |
| 58 | + </actionGroup> |
| 59 | +</actionGroups> |
0 commit comments