-
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 remote-tracking branch 'origin/mtf-eol' into MC-4789
- Loading branch information
Showing
105 changed files
with
1,986 additions
and
3,131 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...de/Magento/Backend/Test/Mftf/ActionGroup/SetWebsiteCountryOptionsToDefaultActionGroup.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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="SetWebsiteCountryOptionsToDefaultActionGroup"> | ||
<conditionalClick selector="{{CountryOptionsSection.countryOptions}}" dependentSelector="{{CountryOptionsSection.countryOptionsOpen}}" visible="false" stepKey="clickOnStoreInformation3"/> | ||
<waitForElementVisible selector="{{CountryOptionsSection.topDestinations}}" stepKey="waitCheckboxToBeVisible3"/> | ||
<checkOption selector="{{CountryOptionsSection.generalCountryAllowInherit}}" stepKey="setToDefault1"/> | ||
<checkOption selector="{{CountryOptionsSection.generalCountryDefaultInherit}}" stepKey="setToDefault2"/> | ||
<click selector="{{ContentManagementSection.Save}}" stepKey="saveDefaultConfig"/> | ||
<waitForPageLoad stepKey="waitForSavingSystemConfiguration"/> | ||
<see userInput="You saved the configuration." stepKey="seeSuccessMessage"/> | ||
</actionGroup> | ||
</actionGroups> |
18 changes: 18 additions & 0 deletions
18
app/code/Magento/Backend/Test/Mftf/Section/CountryOptionsSection.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,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd"> | ||
<section name="CountryOptionsSection"> | ||
<element name="allowedCountries" type="select" selector="#general_country_allow"/> | ||
<element name="notAllowedCountry" type="button" selector="#general_country_allow option:not([selected])"/> | ||
<element name="generalCountryAllowInherit" type="checkbox" selector="#general_country_allow_inherit"/> | ||
<element name="generalCountryDefaultInherit" type="checkbox" selector="#general_country_default_inherit"/> | ||
<element name="generalCountryDefault" type="select" selector="#general_country_default"/> | ||
</section> | ||
</sections> |
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
21 changes: 21 additions & 0 deletions
21
app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminAddMinimumAdvertisedPriceActionGroup.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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminAddMinimumAdvertisedPriceActionGroup"> | ||
<arguments> | ||
<argument name="msrpData" type="entity"/> | ||
</arguments> | ||
<waitForPageLoad stepKey="waitForPageLoad"/> | ||
<click selector="{{AdminProductFormSection.advancedPricingLink}}" stepKey="clickAdvancedPricingLink"/> | ||
<waitForElementVisible selector="{{AdminProductFormAdvancedPricingSection.msrp}}" stepKey="waitSpecialPrice"/> | ||
<fillField selector="{{AdminProductFormAdvancedPricingSection.msrp}}" userInput="{{msrpData.msrp}}" stepKey="fillMinimumAdvertisedPrice"/> | ||
<selectOption selector="{{AdminProductFormAdvancedPricingSection.msrpType}}" userInput="{{msrpData.msrp_display_actual_price_type}}" stepKey="selectPriceType"/> | ||
<click selector="{{AdminProductFormAdvancedPricingSection.doneButton}}" stepKey="clickDone"/> | ||
<waitForElementNotVisible selector="{{AdminProductFormAdvancedPricingSection.msrp}}" stepKey="waitForCloseModalWindow"/> | ||
</actionGroup> | ||
</actionGroups> |
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
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
69 changes: 69 additions & 0 deletions
69
app/code/Magento/Catalog/Test/Mftf/Test/AdminGridPageNumberAfterSaveAndCloseActionTest.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,69 @@ | ||
<?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="AdminGridPageNumberAfterSaveAndCloseActionTest"> | ||
<annotations> | ||
<features value="Catalog"/> | ||
<title value="Checking Catalog grid page number after Save and Close action"/> | ||
<description value="Checking Catalog grid page number after Save and Close action"/> | ||
<severity value="MAJOR"/> | ||
<testCaseId value="MAGETWO-96164"/> | ||
<useCaseId value="MAGETWO-96127"/> | ||
<group value="Catalog"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
<!--Clear product grid--> | ||
<comment userInput="Clear product grid" stepKey="commentClearProductGrid"/> | ||
<amOnPage url="{{ProductCatalogPage.url}}" stepKey="goToProductCatalog"/> | ||
<waitForPageLoad stepKey="waitForProductIndexPage"/> | ||
<conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" | ||
dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForGridLoad"/> | ||
<actionGroup ref="deleteProductsIfTheyExist" stepKey="deleteProductIfTheyExist"/> | ||
<createData stepKey="category1" entity="SimpleSubCategory"/> | ||
<createData stepKey="product1" entity="SimpleProduct"> | ||
<requiredEntity createDataKey="category1"/> | ||
</createData> | ||
<createData stepKey="category2" entity="SimpleSubCategory"/> | ||
<createData stepKey="product2" entity="SimpleProduct"> | ||
<requiredEntity createDataKey="category2"/> | ||
</createData> | ||
</before> | ||
<after> | ||
<amOnPage url="{{ProductCatalogPage.url}}" stepKey="goToProductCatalog"/> | ||
<waitForPageLoad stepKey="waitForProductIndexPage"/> | ||
<click selector="{{AdminDataGridPaginationSection.previousPage}}" stepKey="clickPrevPageOrderGrid"/> | ||
<actionGroup ref="adminDataGridDeleteCustomPerPage" stepKey="deleteCustomAddedPerPage"> | ||
<argument name="perPage" value="ProductPerPage.productCount"/> | ||
</actionGroup> | ||
<deleteData stepKey="deleteCategory1" createDataKey="category1"/> | ||
<deleteData stepKey="deleteProduct1" createDataKey="product1"/> | ||
<deleteData stepKey="deleteCategory2" createDataKey="category2"/> | ||
<deleteData stepKey="deleteProduct2" createDataKey="product2"/> | ||
<actionGroup ref="logout" stepKey="logout"/> | ||
</after> | ||
<amOnPage url="{{ProductCatalogPage.url}}" stepKey="goToProductCatalog"/> | ||
<waitForPageLoad stepKey="waitForProductIndexPage"/> | ||
<actionGroup ref="adminDataGridSelectCustomPerPage" stepKey="select1OrderPerPage"> | ||
<argument name="perPage" value="ProductPerPage.productCount"/> | ||
</actionGroup> | ||
<!--Go to the next page and edit the product--> | ||
<comment userInput="Go to the next page and edit the product" stepKey="commentEdiProduct"/> | ||
<click selector="{{AdminDataGridPaginationSection.nextPage}}" stepKey="clickNextPageOrderGrid"/> | ||
<waitForPageLoad stepKey="waitForPageLoad"/> | ||
<actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct2"> | ||
<argument name="product" value="$$product2$$"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminFormSaveAndClose" stepKey="saveAndCloseProduct"/> | ||
<waitForPageLoad stepKey="waitForPageLoad1"/> | ||
<seeInField selector="{{AdminDataGridPaginationSection.currentPage}}" userInput="2" stepKey="seeOnSecondPageOrderGrid"/> | ||
</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
23 changes: 23 additions & 0 deletions
23
...gento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<!-- Open the Minicart and check Summary --> | ||
<actionGroup name="StorefrontCheckCartDiscountAndSummaryActionGroup"> | ||
<arguments> | ||
<argument name="total" type="string"/> | ||
<argument name="discount" type="string"/> | ||
</arguments> | ||
<waitForPageLoad stepKey="waitForPageLoad"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForPrices"/> | ||
<see selector="{{CheckoutCartSummarySection.discountAmount}}" userInput="-${{discount}}" stepKey="assertDiscount"/> | ||
<wait time="10" stepKey="waitForTotalPrice"/> | ||
<see selector="{{CheckoutCartSummarySection.total}}" userInput="${{total}}" stepKey="assertTotal"/> | ||
</actionGroup> | ||
</actionGroups> |
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
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.