Skip to content

Commit 8154800

Browse files
MC-31632: Dynamic Block based on segment not displaying correctly for visitor
1 parent a54a2b7 commit 8154800

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-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>

0 commit comments

Comments
 (0)