Skip to content

[MFTF] use action group go to home page #28955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</after>
<actionGroup ref="SetMinimalQueryLengthActionGroup" stepKey="setMinQueryLength"/>
<comment userInput="Go to Storefront and search for product" stepKey="searchProdUsingMinQueryLength"/>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToHomePage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/>
<comment userInput="Quick search by single character and avoid using ES stopwords" stepKey="commentQuickSearch"/>
<fillField selector="{{StorefrontQuickSearchResultsSection.searchTextBox}}" userInput="B" stepKey="fillAttribute"/>
<waitForPageLoad stepKey="waitForSearchTextBox"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="$createBundleProduct.name$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
</after>
<comment userInput="$simpleProduct1.name$" stepKey="asdf"/>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="$createBundleProduct.name$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductsGridFilters"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="{{_defaultProduct.name}}"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<deleteData stepKey="deleteProduct" createDataKey="createProduct"/>
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="$createProduct.name$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<deleteData stepKey="deleteSimpleProduct" createDataKey="simple1"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="&quot;$createProduct.name$&quot;"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<deleteData stepKey="deleteProduct" createDataKey="createSimpleProduct"/>
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="$createSimpleProduct.name$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<deleteData stepKey="deleteProduct" createDataKey="createVirtualProduct"/>
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="$createVirtualProduct.name$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
</after>

<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="ThisShouldn'tReturnAnything"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<deleteData stepKey="deleteProduct" createDataKey="createSimpleProduct"/>
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="$createSimpleProduct.sku$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>

</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="{{_defaultProduct.name}}"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
</after>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToHomePage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
<argument name="phrase" value="$createConfigurableProduct.name$"/>
</actionGroup>
Expand All @@ -98,7 +98,7 @@
<actionGroup ref="ToggleProductEnabledActionGroup" stepKey="disableProduct"/>
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>

<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToHomePageAgain"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePageAgain"/>
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefrontAgain">
<argument name="phrase" value="$createConfigurableProduct.name$"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<field key="price">10</field>
</createData>
<createData entity="FreeShippinMethodConfig" stepKey="enableFreeShipping"/>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToStorefront"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefront"/>
<executeJS function="window.localStorage.clear();" stepKey="clearLocalStorage"/>
</before>
<after>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@
<magentoCLI command="cache:flush" stepKey="flushCache"/>

<!-- Quick search the storefront for the first attribute option -->
<amOnPage stepKey="goToStoreFront" url="{{StorefrontHomePage.url}}"/>
<waitForPageLoad stepKey="waitForStorefront"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
<submitForm selector="#search_mini_form" parameterArray="['q' => $$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$]" stepKey="searchStorefront1" />
<seeElement stepKey="seeProduct1" selector="{{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
</after>
<!--Step 1: Go to Storefront as Guest-->
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnStorefrontPage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnStorefrontPage"/>
<!--Step 2: Add downloadable product to shopping cart-->
<amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="amOnStorefrontProductPage"/>
<actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="addProductToCart">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/>
<!--Navigate to storefront and do a quick search for the product -->
<comment userInput="Navigate to Storefront to check if quick search works" stepKey="commentCheckQuickSearch" />
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToHomePage"/>

<waitForPageLoad stepKey="waitForHomePageToLoad" time="30"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/>
<fillField userInput="Simple" selector="{{StorefrontQuickSearchSection.searchPhrase}}" stepKey="fillSearchBar"/>
<waitForPageLoad stepKey="wait2" time="30"/>
<click selector="{{StorefrontQuickSearchSection.searchButton}}" stepKey="clickSearchButton"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<selectOption selector="{{CheckoutCartSummarySection.stateProvince}}" userInput="{{US_Address_CA.state}}" stepKey="selectCaliforniaRegion"/>
<fillField selector="{{CheckoutCartSummarySection.postcode}}" userInput="{{US_Address_CA.postcode}}" stepKey="inputPostCode"/>
<!--Step 6: Go to Homepage-->
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToHomePageAfterChangingShippingAndTaxSection"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePageAfterChangingShippingAndTaxSection"/>
<!--Step 7: Go to shopping cart and check "Estimate Shipping and Tax" fields values are saved-->
<actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" after="goToHomePageAfterChangingShippingAndTaxSection" stepKey="goToShoppingCartAfterChangingShippingAndTaxSection"/>
<conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.country}}" visible="false" stepKey="expandEstimateShippingAndTaxAfterChanging" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</after>

<!-- 1. Go to storefront and click the Create an Account link-->
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnHomePage"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage"/>
<click selector="{{StorefrontPanelHeaderSection.createAnAccountLink}}" stepKey="clickCreateAnAccountLink" />
<actionGroup ref="StorefrontAssertPersistentRegistrationPageFields" stepKey="assertPersistentRegistrationPageFields"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<argument name="actionValue" value="$$createCategory.id$$"/>
</actionGroup>
<!-- 2: Go to frontend and add an item from both CAT1 and CAT2 to your cart -->
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontend"/>
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontend"/>
<!-- 3: Open configurable product 1 and add all his child products to cart -->
<amOnPage url="{{StorefrontProductPage.url($$createConfigProductCreateConfigurableProduct1.custom_attributes[url_key]$$)}}" stepKey="amOnConfigurableProductPage"/>
<selectOption selector="{{StorefrontProductInfoMainSection.productOptionSelect('$$createConfigProductAttributeCreateConfigurableProduct1.attribute[frontend_labels][0][label]$$')}}" userInput="$$createConfigProductAttributeOption1CreateConfigurableProduct1.option[store_labels][0][label]$$" stepKey="selectOption"/>
Expand Down