Skip to content

Commit

Permalink
MQE-1075: Move MFTF tests from dev/tests/acceptance to app/code
Browse files Browse the repository at this point in the history
  • Loading branch information
okolesnyk committed Jul 5, 2018
1 parent 38dfc6e commit 41a8946
Show file tree
Hide file tree
Showing 1,011 changed files with 3,500 additions and 4,962 deletions.
3 changes: 3 additions & 0 deletions app/code/Magento/AdminNotification/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Admin Notification Functional Tests

The Functional Test Module for **Magento Admin Notification** module.
20 changes: 20 additions & 0 deletions app/code/Magento/AdminNotification/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "magento/functional-test-module-admin-notification",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/functional-test-module-media-storage": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0",
"magento/functional-test-module-ui": "100.0.0-dev"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Advanced Pricing Import Export Functional Tests

The Functional Test Module for **Magento Advanced Pricing Import Export** module.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "magento/functional-test-module-advanced-pricing-import-export",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-catalog": "100.0.0-dev",
"magento/functional-test-module-catalog-inventory": "100.0.0-dev",
"magento/functional-test-module-eav": "100.0.0-dev",
"magento/functional-test-module-import-export": "100.0.0-dev",
"magento/functional-test-module-catalog-import-export": "100.0.0-dev",
"magento/functional-test-module-customer": "100.0.0-dev",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
3 changes: 3 additions & 0 deletions app/code/Magento/Analytics/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Analytics Functional Tests

The Functional Test Module for **Magento Analytics** module.
20 changes: 20 additions & 0 deletions app/code/Magento/Analytics/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "magento/functional-test-module-analytics",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/functional-test-module-config": "100.0.0-dev",
"magento/functional-test-module-integration": "100.0.0-dev",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
3 changes: 3 additions & 0 deletions app/code/Magento/Authorization/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Authorization Functional Tests

The Functional Test Module for **Magento Authorization** module.
17 changes: 17 additions & 0 deletions app/code/Magento/Authorization/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "magento/functional-test-module-authorization",
"description": "Authorization module provides access to Magento ACL functionality.",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
3 changes: 3 additions & 0 deletions app/code/Magento/Authorizenet/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Authorizenet Functional Tests

The Functional Test Module for **Magento Authorizenet** module.
25 changes: 25 additions & 0 deletions app/code/Magento/Authorizenet/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "magento/functional-test-module-authorizenet",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-sales": "100.0.0-dev",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/functional-test-module-quote": "100.0.0-dev",
"magento/functional-test-module-checkout": "100.0.0-dev",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/functional-test-module-payment": "100.0.0-dev",
"magento/functional-test-module-catalog": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"suggest": {
"magento/functional-test-module-config": "100.0.0-dev"
},
"type": "magento2-test",
"license": [
"proprietary"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="LoginToAdminActionGroup">
<amOnPage url="{{AdminLoginPage.url}}" stepKey="amOnAdminLoginPage"/>
<fillField selector="{{AdminLoginFormSection.username}}" userInput="{{_ENV.MAGENTO_ADMIN_USERNAME}}" stepKey="fillUsername"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="LoginActionGroup">
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}" stepKey="navigateToAdmin"/>
<fillField userInput="{{_ENV.MAGENTO_ADMIN_USERNAME}}" selector="{{AdminLoginFormSection.username}}" stepKey="fillUsername"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="LoginAsAdmin">
<arguments>
<argument name="adminUser" defaultValue="_ENV"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="logout">
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/admin/auth/logout/" stepKey="amOnLogoutPage"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="SortByIdDescendingActionGroup">
<conditionalClick selector="//div[contains(@data-role, 'grid-wrapper')]/table/thead/tr/th/span[contains(text(), 'ID')]" dependentSelector="//span[contains(text(), 'ID')]/parent::th[not(contains(@class, '_descend'))]/parent::tr/parent::thead/parent::table/parent::div[contains(@data-role, 'grid-wrapper')]" stepKey="clickToAttemptSortByIdDescending" visible="true"/>
<waitForLoadingMaskToDisappear stepKey="waitForFirstIdSortDescendingToFinish" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
-->

<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
<entity name="backendDataOne" type="backend">
<data key="backendConfigName">data</data>
</entity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd">
<page name="ConfigurationStoresPage" url="admin/system_config/edit/section/cms/" area="admin" module="Catalog">
<section name="WYSIWYGOptionsSection"/>
</page>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
-->

<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd">
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd">
<page name="AdminLoginPage" url="admin" area="admin" module="Magento_Backend">
<section name="AdminLoginFormSection"/>
</page>
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Backend/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Backend Functional Tests

The Functional Test Module for **Magento Backend** module.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminConfirmationModalSection">
<element name="title" type="text" selector="aside.confirm .modal-title"/>
<element name="message" type="text" selector="aside.confirm .modal-content"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminGridTableSection">
<element name="row" type="text" selector="table.data-grid tbody tr[data-role=row]:nth-of-type({{row}})" parameterized="true"/>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminHeaderSection">
<element name="pageTitle" type="text" selector=".page-header h1.page-title"/>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminLoginFormSection">
<element name="username" type="input" selector="#username"/>
<element name="password" type="input" selector="#login"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminMainActionsSection">
<element name="save" type="button" selector="#save"/>
<element name="delete" type="button" selector="#delete"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="AdminMessagesSection">
<element name="test" type="input" selector=".test"/>
<element name="success" type="text" selector="#messages div.message-success"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
<test name="AdminLoginTest">
<annotations>
<features value="Admin Login"/>
Expand Down
34 changes: 34 additions & 0 deletions app/code/Magento/Backend/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "magento/functional-test-module-backend",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/functional-test-module-directory": "100.0.0-dev",
"magento/functional-test-module-developer": "100.0.0-dev",
"magento/functional-test-module-eav": "100.0.0-dev",
"magento/functional-test-module-reports": "100.0.0-dev",
"magento/functional-test-module-sales": "100.0.0-dev",
"magento/functional-test-module-quote": "100.0.0-dev",
"magento/functional-test-module-catalog": "100.0.0-dev",
"magento/functional-test-module-user": "100.0.0-dev",
"magento/functional-test-module-security": "100.0.0-dev",
"magento/functional-test-module-backup": "100.0.0-dev",
"magento/functional-test-module-customer": "100.0.0-dev",
"magento/functional-test-module-translation": "100.0.0-dev",
"magento/functional-test-module-require-js": "100.0.0-dev",
"magento/functional-test-module-config": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"suggest": {
"magento/functional-test-module-theme": "100.0.0-dev"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
3 changes: 3 additions & 0 deletions app/code/Magento/Backup/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Backup Functional Tests

The Functional Test Module for **Magento Backup** module.
19 changes: 19 additions & 0 deletions app/code/Magento/Backup/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "magento/functional-test-module-backup",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/functional-test-module-store": "100.0.0-dev",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/functional-test-module-cron": "100.0.0-dev",
"magento/magento2-functional-testing-framework": "2.2.0"
},
"type": "magento2-test",
"license": [
"OSL-3.0",
"AFL-3.0"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
<entity name="SampleBraintreeConfig" type="braintree_config_state">
<requiredEntity type="title">SampleTitle</requiredEntity>
<requiredEntity type="payment_action">SamplePaymentAction</requiredEntity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
<operation name="CreateBraintreeConfigState" dataType="braintree_config_state" type="create" auth="adminFormKey" url="/admin/system_config/save/section/payment/" method="POST">
<object key="groups" dataType="braintree_config_state">
<object key="braintree_section" dataType="braintree_config_state">
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Braintree/Test/Mftf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Braintree Functional Tests

The Functional Test Module for **Magento Braintree** module.
33 changes: 33 additions & 0 deletions app/code/Magento/Braintree/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "magento/functional-test-module-braintree",
"description": "N/A",
"config": {
"sort-packages": true
},
"require": {
"php": "~7.0.13|~7.1.0",
"magento/magento2-functional-testing-framework": "2.2.0",
"magento/magento-composer-installer": "100.0.0-dev",
"magento/functional-test-module-config": "100.0.0-dev",
"magento/functional-test-module-directory": "100.0.0-dev",
"magento/functional-test-module-payment": "100.0.0-dev",
"magento/functional-test-module-checkout": "100.0.0-dev",
"magento/functional-test-module-sales": "100.0.0-dev",
"magento/functional-test-module-backend": "100.0.0-dev",
"magento/functional-test-module-vault": "100.0.0-dev",
"magento/functional-test-module-instant-purchase": "100.0.0-dev",
"magento/functional-test-module-customer": "100.0.0-dev",
"magento/functional-test-module-catalog": "100.0.0-dev",
"magento/functional-test-module-quote": "100.0.0-dev",
"magento/functional-test-module-paypal": "100.0.0-dev",
"magento/functional-test-module-ui": "100.0.0-dev"
},
"suggest": {
"magento/functional-test-module-checkout-agreements": "100.0.0-dev",
"magento/functional-test-module-theme": "100.0.0-dev"
},
"type": "magento2-test",
"license": [
"proprietary"
]
}
Loading

0 comments on commit 41a8946

Please sign in to comment.