-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.4-develop' into mftf-deprecated-GoToAttributeGridPage…
…ActionGroup
- Loading branch information
Showing
41 changed files
with
1,320 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
...code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryWithProductsDefaultSortingTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminUpdateCategoryWithProductsDefaultSortingTest"> | ||
<annotations> | ||
<features value="Catalog"/> | ||
<stories value="Update categories"/> | ||
<title value="Update category, sort products by default sorting"/> | ||
<description value="Login as admin, update category and sort products"/> | ||
<testCaseId value="MC-25667"/> | ||
<severity value="CRITICAL"/> | ||
<group value="catalog"/> | ||
<group value="mtf_migrated"/> | ||
</annotations> | ||
<before> | ||
<createData entity="defaultSimpleProduct" stepKey="simpleProduct" /> | ||
<createData entity="_defaultCategory" stepKey="createCategory"/> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdminPanel"/> | ||
</before> | ||
<after> | ||
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/> | ||
<deleteData createDataKey="simpleProduct" stepKey="deleteSimpleProduct"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> | ||
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/> | ||
</after> | ||
|
||
<!--Open Category Page--> | ||
<actionGroup ref="GoToAdminCategoryPageByIdActionGroup" stepKey="goToAdminCategoryPage"> | ||
<argument name="id" value="$createCategory.id$"/> | ||
</actionGroup> | ||
|
||
<!--Update Product Display Setting--> | ||
<waitForElementVisible selector="{{AdminCategoryDisplaySettingsSection.settingsHeader}}" stepKey="waitForDisplaySettingsSection"/> | ||
<conditionalClick selector="{{AdminCategoryDisplaySettingsSection.settingsHeader}}" dependentSelector="{{AdminCategoryDisplaySettingsSection.displayMode}}" visible="false" stepKey="openDisplaySettingsSection"/> | ||
<waitForElementVisible selector="{{CategoryDisplaySettingsSection.productListCheckBox}}" stepKey="waitForAvailableProductListCheckbox"/> | ||
<click selector="{{CategoryDisplaySettingsSection.productListCheckBox}}" stepKey="enableTheAvailableProductList"/> | ||
<selectOption selector="{{CategoryDisplaySettingsSection.productList}}" parameterArray="['Product Name', 'Price']" stepKey="selectPrice"/> | ||
<waitForElementVisible selector="{{CategoryDisplaySettingsSection.defaultProductLisCheckBox}}" stepKey="waitForDefaultProductList"/> | ||
<click selector="{{CategoryDisplaySettingsSection.defaultProductLisCheckBox}}" stepKey="enableTheDefaultProductList"/> | ||
<selectOption selector="{{CategoryDisplaySettingsSection.defaultProductList}}" userInput="name" stepKey="selectProductName"/> | ||
|
||
<!--Add Products in Category--> | ||
<actionGroup ref="AdminCategoryAssignProductActionGroup" stepKey="assignSimpleProductToCategory"> | ||
<argument name="productSku" value="$simpleProduct.sku$"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminSaveCategoryFormActionGroup" stepKey="saveCategory"/> | ||
|
||
<!--Verify Category Title--> | ||
<see selector="{{AdminCategoryContentSection.categoryPageTitle}}" userInput="{{_defaultCategory.name}}" stepKey="seeCategoryNamePageTitle" /> | ||
|
||
<!--Verify Category in store front page--> | ||
<amOnPage url="{{StorefrontCategoryPage.url($createCategory.custom_attributes[url_key]$)}}" stepKey="openStorefrontCategoryPage"/> | ||
|
||
<!--Verify Product in Category--> | ||
<actionGroup ref="AssertStorefrontProductIsPresentOnCategoryPageActionGroup" stepKey="assertSimpleProductOnCategoryPage"> | ||
<argument name="productName" value="$simpleProduct.name$"/> | ||
</actionGroup> | ||
|
||
<!--Verify product name and sku on Store Front--> | ||
<actionGroup ref="AssertProductNameAndSkuInStorefrontProductPageByCustomAttributeUrlKeyActionGroup" stepKey="assertProductOnStorefrontProductPage"> | ||
<argument name="product" value="$simpleProduct$"/> | ||
</actionGroup> | ||
</test> | ||
</tests> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
...frontCheckoutWithDifferentShippingAndBillingAddressAndCreateCustomerAfterCheckoutTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="StorefrontCheckoutWithDifferentShippingAndBillingAddressAndCreateCustomerAfterCheckoutTest"> | ||
<annotations> | ||
<stories value="Checkout"/> | ||
<title value="Verify UK customer checkout with different billing and shipping address and register customer after checkout"/> | ||
<description value="Checkout as UK customer with different shipping/billing address and register checkout method"/> | ||
<severity value="CRITICAL"/> | ||
<testCaseId value="MC-28288"/> | ||
<group value="mtf_migrated"/> | ||
<group value="checkout"/> | ||
</annotations> | ||
|
||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdminPanel"/> | ||
<createData entity="SimpleProduct2" stepKey="simpleProduct"> | ||
<field key="price">50.00</field> | ||
</createData> | ||
</before> | ||
<after> | ||
<!-- Sign out Customer from storefront --> | ||
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/> | ||
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/> | ||
<actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer"> | ||
<argument name="customerEmail" value="UKCustomer.email"/> | ||
</actionGroup> | ||
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearCustomersGridFilter"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> | ||
</after> | ||
|
||
<!--Open Product page in StoreFront and assert product and price range --> | ||
<actionGroup ref="AssertProductNameAndSkuInStorefrontProductPageByCustomAttributeUrlKeyActionGroup" stepKey="openProductPageAndVerifyProduct"> | ||
<argument name="product" value="$simpleProduct$"/> | ||
</actionGroup> | ||
|
||
<!--Add product to the cart --> | ||
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart"> | ||
<argument name="product" value="$simpleProduct$"/> | ||
</actionGroup> | ||
|
||
<!--Open View and edit --> | ||
<actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" stepKey="openCartFromMiniCart"/> | ||
|
||
<!-- Fill the Estimate Shipping and Tax section --> | ||
<actionGroup ref="CheckoutFillEstimateShippingAndTaxActionGroup" stepKey="fillEstimateShippingAndTaxFields"/> | ||
<click selector="{{CheckoutCartSummarySection.proceedToCheckout}}" stepKey="goToCheckout"/> | ||
<waitForPageLoad stepKey="waitForPageToLoad"/> | ||
|
||
<!-- Fill the guest form --> | ||
<actionGroup ref="FillGuestCheckoutShippingAddressFormActionGroup" stepKey="fillGuestShippingAddress"> | ||
<argument name="customer" value="UKCustomer"/> | ||
<argument name="customerAddress" value="updateCustomerUKAddress"/> | ||
</actionGroup> | ||
<actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping"/> | ||
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToBillingStep"/> | ||
<waitForElementVisible selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="waitForSameBillingAndShippingAddressCheckboxVisible"/> | ||
<uncheckOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="uncheckSameBillingAndShippingAddress"/> | ||
<conditionalClick selector="{{CheckoutShippingSection.editAddressButton}}" dependentSelector="{{CheckoutShippingSection.editAddressButton}}" visible="true" stepKey="clickEditBillingAddressButton"/> | ||
|
||
<!-- Fill Billing Address --> | ||
<actionGroup ref="StorefrontFillBillingAddressActionGroup" stepKey="fillBillingAddressForm"/> | ||
<click selector="{{CheckoutPaymentSection.update}}" stepKey="clickOnUpdateBillingAddressButton"/> | ||
|
||
<!--Place order --> | ||
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/> | ||
<seeElement selector="{{StorefrontMinicartSection.emptyMiniCart}}" stepKey="assertEmptyCart" /> | ||
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumberWithoutLink}}" stepKey="orderId"/> | ||
|
||
<!-- Register customer after checkout --> | ||
<actionGroup ref="StorefrontRegisterCustomerAfterCheckoutActionGroup" stepKey="registerCustomer"/> | ||
|
||
<!-- Open Order Page in admin --> | ||
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder"> | ||
<argument name="orderId" value="{$orderId}"/> | ||
</actionGroup> | ||
|
||
<!-- Assert Grand Total --> | ||
<see selector="{{AdminOrderTotalSection.grandTotal}}" userInput="$55.00" stepKey="seeGrandTotal"/> | ||
<see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="Pending" stepKey="seeOrderStatus"/> | ||
|
||
<!-- Ship the order and assert the status --> | ||
<actionGroup ref="GoToShipmentIntoOrderActionGroup" stepKey="goToShipment"/> | ||
<actionGroup ref="SubmitShipmentIntoOrderActionGroup" stepKey="submitShipment"/> | ||
|
||
<!-- Assert order buttons --> | ||
<actionGroup ref="AdminAssertOrderAvailableButtonsActionGroup" stepKey="assertOrderButtons"/> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.