-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 ASI-1830-stabilize-failing-mftf-tests…
…-in-media-gallery-catalog-ui
- Loading branch information
Showing
27 changed files
with
410 additions
and
66 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
67 changes: 67 additions & 0 deletions
67
app/code/Magento/Bundle/Test/Mftf/Test/AdminDeleteBundleDynamicPriceProductTest.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,67 @@ | ||
<?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="AdminDeleteBundleDynamicPriceProductTest"> | ||
<annotations> | ||
<features value="Bundle"/> | ||
<stories value="Delete products"/> | ||
<title value="Delete Bundle Dynamic Product"/> | ||
<description value="Admin should be able to delete a bundle dynamic product"/> | ||
<severity value="CRITICAL"/> | ||
<testCaseId value="MC-26056"/> | ||
<group value="mtf_migrated"/> | ||
<group value="bundle"/> | ||
</annotations> | ||
<before> | ||
<!-- Create category and simple product --> | ||
<createData entity="SimpleSubCategory" stepKey="createCategory"/> | ||
<createData entity="SimpleProduct2" stepKey="createSimpleProduct"/> | ||
|
||
<!-- Create bundle product --> | ||
<createData entity="ApiBundleProductPriceViewRange" stepKey="createDynamicBundleProduct"> | ||
<requiredEntity createDataKey="createCategory"/> | ||
</createData> | ||
<createData entity="DropDownBundleOption" stepKey="bundleOption"> | ||
<requiredEntity createDataKey="createDynamicBundleProduct"/> | ||
</createData> | ||
<createData entity="ApiBundleLink" stepKey="createNewBundleLink"> | ||
<requiredEntity createDataKey="createDynamicBundleProduct"/> | ||
<requiredEntity createDataKey="bundleOption"/> | ||
<requiredEntity createDataKey="createSimpleProduct"/> | ||
</createData> | ||
<!-- TODO: Remove this action when MC-37719 will be fixed --> | ||
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices"> | ||
<argument name="indices" value="cataloginventory_stock"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
</before> | ||
<after> | ||
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/> | ||
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/> | ||
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteBundleProductBySku"> | ||
<argument name="sku" value="$createDynamicBundleProduct.sku$"/> | ||
</actionGroup> | ||
<!-- Verify product on Product Page --> | ||
<amOnPage url="{{StorefrontProductPage.url($createDynamicBundleProduct.custom_attributes[url_key]$)}}" stepKey="openBundleProductPage"/> | ||
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="Whoops, our bad..." stepKey="seeWhoopsMessage"/> | ||
<!-- Search for the product by sku --> | ||
<actionGroup ref="StoreFrontQuickSearchActionGroup" stepKey="searchBySku"> | ||
<argument name="query" value="$createDynamicBundleProduct.sku$"/> | ||
</actionGroup> | ||
<!-- Should not see bundle product --> | ||
<dontSee userInput="$createDynamicBundleProduct.sku$" selector="{{StorefrontCatalogSearchMainSection.searchResults}}" stepKey="dontSeeProduct"/> | ||
<amOnPage url="{{StorefrontCategoryPage.url($createCategory.custom_attributes[url_key]$)}}" stepKey="openCategoryPage"/> | ||
<!-- Should not see any products in category --> | ||
<dontSee userInput="$createDynamicBundleProduct.name$" selector="{{StorefrontCategoryMainSection.productsList}}" stepKey="dontSeeProductInCategory"/> | ||
<see selector="{{StorefrontCategoryMainSection.emptyProductMessage}}" userInput="We can't find products matching the selection." stepKey="seeEmptyProductMessage"/> | ||
</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
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
56 changes: 56 additions & 0 deletions
56
app/code/Magento/Customer/Test/Mftf/Test/AdminGridSearchSelectAllTest.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,56 @@ | ||
<?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="AdminGridSearchSelectAllTest"> | ||
<annotations> | ||
<stories value="Selection should be removed during search."/> | ||
<title value="Selection should be removed during search."/> | ||
<description value="Empty selected before and after search, like it works for filter"/> | ||
<testCaseId value="MC-37659"/> | ||
<severity value="CRITICAL"/> | ||
<group value="uI"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
<!--Create three customers--> | ||
<createData entity="Simple_US_Customer" stepKey="firstCustomer"/> | ||
<createData entity="Simple_US_Customer" stepKey="secondCustomer"/> | ||
<createData entity="Simple_US_Customer" stepKey="thirdCustomer"/> | ||
</before> | ||
<after> | ||
<!--Remove two created customers, third already deleted--> | ||
<deleteData createDataKey="firstCustomer" stepKey="deleteFirstCustomer"/> | ||
<deleteData createDataKey="secondCustomer" stepKey="deleteSecondCustomer"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="openCustomerPage"/> | ||
<!-- search Admin Data Grid By Keyword --> | ||
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/> | ||
<fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="$$secondCustomer.email$$" stepKey="fillKeywordSearchFieldWithSecondCustomerEmail"/> | ||
<click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch"/> | ||
<waitForPageLoad stepKey="waitForPageLoad"/> | ||
<!-- Select all from dropdown --> | ||
<actionGroup ref="AdminGridSelectAllActionGroup" stepKey="selectAllCustomers"/> | ||
<!-- Clear searching By Keyword--> | ||
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFiltersAfterSearch"/> | ||
<waitForPageLoad stepKey="waitForPageLoadAfterSearchRemoved"/> | ||
<!-- Check if selection has bee removed --> | ||
<dontSeeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$secondCustomer.email$$)}}" stepKey="checkSecondCustomerCheckboxIsUnchecked"/> | ||
<!-- Check delete action --> | ||
<click selector="{{AdminCustomerGridMainActionsSection.customerCheckbox(($$thirdCustomer.email$$)}}" stepKey="selectThirdCustomer"/> | ||
<seeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$thirdCustomer.email$$)}}" stepKey="checkThirdCustomerIsChecked"/> | ||
<!-- Use delete action for selected --> | ||
<click selector="{{AdminCustomerGridMainActionsSection.actions}}" stepKey="clickActions"/> | ||
<click selector="{{AdminCustomerGridMainActionsSection.delete}}" stepKey="clickDelete"/> | ||
<waitForAjaxLoad stepKey="waitForLoadConfirmation"/> | ||
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmDelete"/> | ||
<!-- Check if only one record record has been deleted --> | ||
<see selector="{{AdminMessagesSection.success}}" userInput="A total of 1 record(s) were deleted" stepKey="seeSuccess"/> | ||
</test> | ||
</tests> |
Oops, something went wrong.