Skip to content

Commit 9e4c2d9

Browse files
committed
Merge remote-tracking branch 'origin/MC-31632' into 2.4-develop-pr14
2 parents bb6e379 + 8154800 commit 9e4c2d9

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontOpenMiniCartActionGroup.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="clickViewAndEditCartFromMiniCartActionGroup">
12+
<annotations>
13+
<description>Clicks on the Storefront Mini Shopping Cart icon. Clicks on the 'View and Edit Cart' link. Validates that the URL is present and correct. PLEASE NOTE: The URL is Hardcoded.</description>
14+
</annotations>
15+
16+
<scrollTo selector="{{StorefrontMinicartSection.showCart}}" stepKey="scrollToMiniCart"/>
17+
<conditionalClick selector="{{StorefrontMinicartSection.showCart}}" dependentSelector="{{StorefrontMinicartSection.miniCartOpened}}" visible="false" stepKey="openMiniCart"/>
18+
<waitForElementVisible selector="{{StorefrontMinicartSection.viewAndEditCart}}" stepKey="waitForViewAndEditCartVisible"/>
19+
<click selector="{{StorefrontMinicartSection.viewAndEditCart}}" stepKey="viewAndEditCart"/>
20+
<waitForPageLoad stepKey="waitForPageToLoad"/>
21+
<seeInCurrentUrl url="checkout/cart" stepKey="seeInCurrentUrl"/>
22+
</actionGroup>
1123
<actionGroup name="StorefrontOpenMiniCartActionGroup">
1224
<annotations>
1325
<description>Clicks on the Mini Shopping Cart icon in the Storefront Header.</description>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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="updateIndexerBySchedule">
12+
<annotations>
13+
<description>Goes to the Index Management page. Checks the provided Indexer Name. Selects 'Update by Schedule'. Clicks on Submit.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="indexerName" type="string"/>
17+
</arguments>
18+
19+
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/indexer/indexer/list/" stepKey="amOnIndexManagementPage"/>
20+
<waitForPageLoad stepKey="waitForIndexManagementPageToLoad"/>
21+
<click selector="{{AdminIndexManagementSection.indexerCheckbox(indexerName)}}" stepKey="selectIndexer1"/>
22+
<selectOption selector="{{AdminIndexManagementSection.massActionSelect}}" userInput="change_mode_changelog" stepKey="selectUpdateBySchedule"/>
23+
<click selector="{{AdminIndexManagementSection.massActionSubmit}}" stepKey="submitIndexerForm"/>
24+
<!-- No re-indexing is done as part of this actionGroup since the test required no re-indexing -->
25+
<waitForPageLoad stepKey="waitForSave"/>
26+
</actionGroup>
27+
28+
<actionGroup name="updateIndexerOnSave">
29+
<annotations>
30+
<description>Goes to the Index Management page. Checks the provided Indexer Name. Selects 'Update on Save'. Clicks on Submit.</description>
31+
</annotations>
32+
<arguments>
33+
<argument name="indexerName" type="string"/>
34+
</arguments>
35+
36+
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/indexer/indexer/list/" stepKey="amOnIndexManagementPage2"/>
37+
<waitForPageLoad stepKey="waitForIndexManagementPageToLoad2"/>
38+
<click selector="{{AdminIndexManagementSection.indexerCheckbox(indexerName)}}" stepKey="selectIndexer2"/>
39+
<selectOption selector="{{AdminIndexManagementSection.massActionSelect}}" userInput="change_mode_onthefly" stepKey="selectUpdateOnSave"/>
40+
<click selector="{{AdminIndexManagementSection.massActionSubmit}}" stepKey="submitIndexerForm2"/>
41+
<!-- No re-indexing is done as part of this actionGroup since the test required no re-indexing -->
42+
<waitForPageLoad stepKey="waitForSave2"/>
43+
</actionGroup>
44+
<actionGroup name="AdminReindexAndFlushCache">
45+
<annotations>
46+
<description>Run reindex and flush cache.</description>
47+
</annotations>
48+
49+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
50+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
51+
</actionGroup>
52+
</actionGroups>

0 commit comments

Comments
 (0)