Skip to content

Commit

Permalink
Merge pull request #8729 from magento-trigger/AC-10957
Browse files Browse the repository at this point in the history
AC-10957: Stabilize MFTF test
  • Loading branch information
dhaecker authored Feb 11, 2024
2 parents 8609de1 + a8e08fe commit ccaba6d
Show file tree
Hide file tree
Showing 52 changed files with 185 additions and 149 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<checkOption selector="{{AdminProductAttributeSetGridSection.selectFromAttributeResult(attributeCode)}}" stepKey="selectAttributeFromDisplayedResult"/>
<click selector="{{AdminProductAttributeSetGridSection.addSelected}}" stepKey="clickAddSelectedButton" />
<waitForPageLoad stepKey="waitForAttributesToBeAdded"/>
<scrollTo selector="{{AdminProductFormSection.attributeTab}}" stepKey="scrollToAttributeTab" />
<scrollTo selector="{{AdminProductFormSection.attributeTab}}" x="0" y="-100" stepKey="scrollToAttributeTab" />
<click selector="{{AdminProductFormSection.attributeTab}}" stepKey="expandAttributeTab" />
<selectOption selector="{{AdminProductFormSection.customSelectField(attributeCode)}}" userInput="{{adminOption1}}" stepKey="selectAvalueFromDropdown"/>
<click selector="{{AdminProductFormSection.save}}" stepKey="saveTheProduct" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,15 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToAttributeEditPage">
<argument name="ProductAttribute" value="Test Attribute"/>
</actionGroup>
<click selector="{{AttributePropertiesSection.DeleteAttribute}}" stepKey="clickDeleteAttribute" />
<click selector="{{AttributeDeleteModalSection.confirm}}" stepKey="clickOkToConfirmDelete" />
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDeleteAttribute"/>
<comment userInput="BIC workaround" stepKey="clickOkToConfirmDelete"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>

<!-- Reindex invalidated indices after product attribute has been created/deleted -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
<argument name="indices" value=""/>
</actionGroup>

<!-- Select the Default Category for Main Webstore -->
<actionGroup ref="UpdateRootCategoryForStoresActionGroup" stepKey="UpdateRootCategoryForStores">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{textSwatchProductAttribute.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>

<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>
<!-- Reindex invalidated indices after product attribute has been created/deleted -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
<argument name="indices" value=""/>
</actionGroup>

<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{visualSwatchProductAttribute.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>
<!-- Reindex invalidated indices after product attribute has been created/deleted -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
<argument name="indices" value=""/>
</actionGroup>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,16 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="test_custom_attribute"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>

<!-- Reindex invalidated indices after product attribute has been created/deleted -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
<argument name="indices" value=""/>
</actionGroup>

<deleteData createDataKey="simpleCategory1" stepKey="deleteCategory"/>
<deleteData createDataKey="createBundleProduct" stepKey="deleteBundleProduct"/>
<deleteData createDataKey="simpleProduct1" stepKey="deleteProduct1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{dateProductAttribute.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>

<!-- Reindex invalidated indices after product attribute has been created/deleted -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{dropdownProductAttribute.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{dropdownProductAttributeWithQuote.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{multiselectProductAttribute.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{priceProductAttribute.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{textProductAttribute.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@
<actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="goToEditPage">
<argument name="ProductAttribute" value="{{multiselectProductAttribute.attribute_code}}"/>
</actionGroup>
<click stepKey="clickDelete" selector="{{AttributePropertiesSection.DeleteAttribute}}"/>
<click stepKey="clickOk" selector="{{AttributeDeleteModalSection.confirm}}"/>
<waitForPageLoad stepKey="waitForDeletion"/>
<actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
<comment userInput="BIC workaround" stepKey="clickDelete"/>
<comment userInput="BIC workaround" stepKey="clickOk"/>
<comment userInput="BIC workaround" stepKey="waitForDeletion"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="setShippingMethodFlatRate"/>
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentStep"/>
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>

<actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="clickOnPlaceOrder">
<argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<argument name="customerVar" value="CustomerEntityOne"/>
<argument name="customerAddressVar" value="CustomerAddressSimple"/>
</actionGroup>
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
<actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="placeOrder">
<argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage"/>
<argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
<click selector="{{CheckoutPaymentSection.update}}" stepKey="clickOnUpdateBillingAddressButton"/>

<!--Place order -->
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/>
<seeElement selector="{{StorefrontMinicartSection.emptyMiniCart}}" stepKey="assertEmptyCart" />
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumberWithoutLink}}" stepKey="orderId"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@
<waitForElementVisible selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="waitForElementToBeVisible"/>
<uncheckOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="uncheckSameBillingAndShippingAddress"/>
<conditionalClick selector="{{CheckoutShippingSection.editAddressButton}}" dependentSelector="{{CheckoutShippingSection.editAddressButton}}" visible="true" stepKey="clickEditButton"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/>
<waitForPageLoad stepKey="waitForLoadingMask"/>

<!-- Fill Billing Address -->
<actionGroup ref="StorefrontFillBillingAddressActionGroup" stepKey="fillBillingAddress"/>
<click selector="{{CheckoutPaymentSection.update}}" stepKey="clickOnUpdateButton"/>

<!--Place order -->
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/>
<seeElement selector="{{StorefrontMinicartSection.emptyMiniCart}}" stepKey="assertEmptyCart" />
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumberWithoutLink}}" stepKey="orderId"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
<actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickOnNextButton"/>

<!-- Place order and Assert success message -->
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/>

<!-- Assert empty Mini Cart -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</actionGroup>

<!-- Place order and Assert success message -->
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/>
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="orderId"/>
<actionGroup ref="StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey="openOrderViewPage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>

<!-- Delete All Non Default Tax Rates-->
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>
<actionGroup ref="AdminDeleteMultipleTaxRatesActionGroup" stepKey="deleteAllNonDefaultTaxRates"/>

<!-- Go to tax rule page -->
<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRulePage"/>
<click stepKey="addNewTaxRate" selector="{{AdminGridMainControls.add}}"/>
Expand Down Expand Up @@ -56,15 +60,9 @@
<!-- Go to the tax rate page -->
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>
<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
<argument name="name" value="{{SimpleTaxNY.state}}-{{SimpleTaxNY.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>

<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteCARate">
<argument name="name" value="{{SimpleTaxCA.state}}-{{SimpleTaxCA.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>
<actionGroup ref="AdminDeleteMultipleTaxRatesActionGroup" stepKey="deleteAllNonDefaultTaxRates"/>
<comment userInput="Preserve BiC" stepKey="deleteNYRate"/>
<comment userInput="Preserve BiC" stepKey="deleteCARate"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
<deleteData createDataKey="simpleproduct1" stepKey="deleteProduct1"/>
<deleteData createDataKey="simplecategory" stepKey="deleteCategory"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<see userInput="Flat Rate - Fixed" selector="{{CheckoutPaymentSection.shippingMethodInformation}}" stepKey="assertShippingMethodInformation"/>

<!-- Place order and Assert success message -->
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/>
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="orderId"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
<actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickOnNextButton"/>

<!-- Place order and Assert success message -->
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/>

<!-- Assert empty Mini Cart -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<click selector="{{CheckoutPaymentSection.update}}" stepKey="clickOnUpdateButton"/>

<!-- Place order and Assert success message -->
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/>

<!-- Assert empty Mini Cart -->
Expand Down
Loading

0 comments on commit ccaba6d

Please sign in to comment.