Skip to content

Commit b96e313

Browse files
Manjusha.SManjusha.S
authored andcommitted
Merge branch 'AC-4138CE' into functional-testing-automation
2 parents 4edd486 + d1fa7a9 commit b96e313

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="SwitchCategoryWebSiteStoreViewActionGroup">
12+
<annotations>
13+
<description>Navigates to category page, selects a category and changes store view to specified store when we have multiple website.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="Store" type="string"/>
17+
<argument name="CatName"/>
18+
</arguments>
19+
20+
<amOnPage url="{{AdminCategoryPage.page}}" stepKey="amOnCategoryPage"/>
21+
<waitForPageLoad stepKey="waitForCategoryPageToLoad"/>
22+
<click selector="{{AdminCategorySidebarTreeSection.categoryInTree(CatName)}}" stepKey="navigateToCreatedCategory"/>
23+
<waitForPageLoad stepKey="waitForCreatedCategoryPageLoad"/>
24+
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskSpinner"/>
25+
<scrollToTopOfPage stepKey="scrollToTopOfToggle"/>
26+
<click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewDropdownToggle}}" stepKey="openStoreViewDropDown"/>
27+
<click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewOption(Store)}}" stepKey="selectStoreView"/>
28+
<waitForPageLoad stepKey="waitForSelectStoreViewLoad"/>
29+
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskSpinnerAgain"/>
30+
<click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewModalAccept}}" stepKey="selectStoreViewAccept"/>
31+
<waitForPageLoad stepKey="waitForStoreViewChangeLoad"/>
32+
</actionGroup>
33+
</actionGroups>

0 commit comments

Comments
 (0)