-
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 pull request #46 from magento-epam/2.3-develop
Merge
- Loading branch information
Showing
152 changed files
with
1,915 additions
and
266 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
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
51 changes: 51 additions & 0 deletions
51
app/code/Magento/Braintree/Test/Mftf/ActionGroup/AdminRoleActionGroup.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,51 @@ | ||
<?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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd"> | ||
|
||
<actionGroup name="GoToUserRoles"> | ||
<click selector="#menu-magento-backend-system" stepKey="clickOnSystemIcon"/> | ||
<waitForPageLoad stepKey="waitForSystemsPageToOpen"/> | ||
<click selector="//span[contains(text(), 'User Roles')]" stepKey="clickToSelectUserRoles"/> | ||
<waitForPageLoad stepKey="waitForUserRolesPageToOpen"/> | ||
</actionGroup> | ||
|
||
<!--Create new role--> | ||
<actionGroup name="AdminCreateRole"> | ||
<arguments> | ||
<argument name="role" type="string" defaultValue=""/> | ||
<argument name="resource" type="string" defaultValue="All"/> | ||
<argument name="scope" type="string" defaultValue="Custom"/> | ||
<argument name="websites" type="string" defaultValue="Main Website"/> | ||
</arguments> | ||
<click selector="{{AdminCreateRoleSection.create}}" stepKey="clickToAddNewRole"/> | ||
<fillField selector="{{AdminCreateRoleSection.name}}" userInput="{{role.name}}" stepKey="setRoleName"/> | ||
<fillField stepKey="setPassword" selector="{{AdminCreateRoleSection.password}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/> | ||
<click selector="{{AdminCreateRoleSection.roleResources}}" stepKey="clickToOpenRoleResources"/> | ||
<waitForPageLoad stepKey="waitForRoleResourcePage" time="5"/> | ||
<click stepKey="checkSales" selector="//a[text()='Sales']"/> | ||
<click selector="{{AdminCreateRoleSection.save}}" stepKey="clickToSaveRole"/> | ||
<waitForPageLoad stepKey="waitForPageLoad" time="10"/> | ||
<see userInput="You saved the role." stepKey="seeSuccessMessage" /> | ||
</actionGroup> | ||
|
||
|
||
<!--Delete role--> | ||
<actionGroup name="AdminDeleteRoleActionGroup"> | ||
<arguments> | ||
<argument name="role" defaultValue=""/> | ||
</arguments> | ||
<click stepKey="clickOnRole" selector="{{AdminDeleteRoleSection.theRole}}"/> | ||
<fillField stepKey="TypeCurrentPassword" selector="{{AdminDeleteRoleSection.current_pass}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/> | ||
<click stepKey="clickToDeleteRole" selector="{{AdminDeleteRoleSection.delete}}"/> | ||
<waitForAjaxLoad stepKey="waitForDeleteConfirmationPopup" time="5"/> | ||
<click stepKey="clickToConfirm" selector="{{AdminDeleteRoleSection.confirm}}"/> | ||
<waitForPageLoad stepKey="waitForPageLoad" time="10"/> | ||
<see stepKey="seeSuccessMessage" userInput="You deleted the role."/> | ||
</actionGroup> | ||
</actionGroups> |
56 changes: 56 additions & 0 deletions
56
app/code/Magento/Braintree/Test/Mftf/ActionGroup/AdminUserActionGroup.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. | ||
*/ | ||
--> | ||
<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"> | ||
|
||
<!--Go to all users--> | ||
<actionGroup name="GoToAllUsers"> | ||
<click selector="{{AdminCreateUserSection.system}}" stepKey="clickOnSystemIcon"/> | ||
<waitForPageLoad stepKey="waitForSystemsPageToOpen"/> | ||
<click selector="{{AdminCreateUserSection.allUsers}}" stepKey="clickToSelectUserRoles"/> | ||
<waitForPageLoad stepKey="waitForUserRolesPageToOpen"/> | ||
</actionGroup> | ||
|
||
<!--Create new user with specified role--> | ||
<actionGroup name="AdminCreateUser"> | ||
<click selector="{{AdminCreateUserSection.create}}" stepKey="clickToCreateNewUser"/> | ||
<waitForPageLoad stepKey="waitForNewUserPageLoad" time="10"/> | ||
<fillField selector="{{AdminCreateUserSection.usernameTextField}}" userInput="{{NewAdmin.username}}" stepKey="enterUserName" /> | ||
<fillField selector="{{AdminCreateUserSection.firstNameTextField}}" userInput="{{NewAdmin.firstName}}" stepKey="enterFirstName" /> | ||
<fillField selector="{{AdminCreateUserSection.lastNameTextField}}" userInput="{{NewAdmin.lastName}}" stepKey="enterLastName" /> | ||
<fillField selector="{{AdminCreateUserSection.emailTextField}}" userInput="{{NewAdmin.email}}" stepKey="enterEmail" /> | ||
<fillField selector="{{AdminCreateUserSection.passwordTextField}}" userInput="{{NewAdmin.password}}" stepKey="enterPassword" /> | ||
<fillField selector="{{AdminCreateUserSection.pwConfirmationTextField}}" userInput="{{NewAdmin.password}}" stepKey="confirmPassword" /> | ||
<fillField selector="{{AdminCreateUserSection.currentPasswordField}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="enterCurrentPassword" /> | ||
<scrollToTopOfPage stepKey="scrollToTopOfPage" /> | ||
<click selector="{{AdminCreateUserSection.userRoleTab}}" stepKey="clickUserRole" /> | ||
<waitForAjaxLoad stepKey="waitForRoles" time="5"/> | ||
<fillField selector="{{AdminCreateRoleSection.roleNameFilterTextField}}" userInput="{{role.name}}" stepKey="filterRole" /> | ||
<click selector="{{AdminCreateRoleSection.searchButton}}" stepKey="clickSearch" /> | ||
<waitForPageLoad stepKey="waitForSearch" time="10"/> | ||
<click selector="{{AdminCreateRoleSection.searchResultFirstRow}}" stepKey="selectRole" /> | ||
<click selector="{{AdminCreateUserSection.saveButton}}" stepKey="clickSaveUser" /> | ||
<waitForPageLoad stepKey="waitForSaveUser" time="10"/> | ||
<see userInput="You saved the user." stepKey="seeSuccessMessage" /> | ||
</actionGroup> | ||
|
||
|
||
<!--Delete User--> | ||
<actionGroup name="AdminDeleteUserActionGroup"> | ||
|
||
<click stepKey="clickOnUser" selector="{{AdminDeleteUserSection.theUser}}"/> | ||
<fillField stepKey="TypeCurrentPassword" selector="{{AdminDeleteUserSection.password}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/> | ||
<scrollToTopOfPage stepKey="scrollToTop"/> | ||
<click stepKey="clickToDeleteUser" selector="{{AdminDeleteUserSection.delete}}"/> | ||
<waitForPageLoad stepKey="waitForDeletePopupOpen" time="5"/> | ||
<click stepKey="clickToConfirm" selector="{{AdminDeleteUserSection.confirm}}"/> | ||
<waitForPageLoad stepKey="waitForPageLoad" time="10"/> | ||
<see userInput="You deleted the user." stepKey="seeSuccessMessage" /> | ||
</actionGroup> | ||
|
||
</actionGroups> |
49 changes: 49 additions & 0 deletions
49
app/code/Magento/Braintree/Test/Mftf/ActionGroup/ConfigureBraintreeActionGroup.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,49 @@ | ||
<?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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd"> | ||
|
||
<actionGroup name="ConfigureBraintree"> | ||
<!-- GoTo ConfigureBraintree fields --> | ||
<click stepKey="clickOnSTORES" selector="{{AdminMenuSection.stores}}"/> | ||
<waitForPageLoad stepKey="waitForConfiguration" time="2"/> | ||
<click stepKey="clickOnConfigurations" selector="{{StoresSubmenuSection.configuration}}" /> | ||
<waitForPageLoad stepKey="waitForSales" time="2"/> | ||
<click stepKey="clickOnSales" selector="{{ConfigurationListSection.sales}}" /> | ||
<waitForPageLoad stepKey="waitForPaymentMethods" time="2"/> | ||
<click stepKey="clickOnPaymentMethods" selector="{{ConfigurationListSection.salesPaymentMethods}}" /> | ||
<waitForPageLoad stepKey="waitForConfigureButton" time="2"/> | ||
<click stepKey="clickOnConfigureButtonForBraintree" selector="{{ConfigurationPaymentSection.configureButton}}" /> | ||
<waitForPageLoad stepKey="BraintreeSettings" time="2"/> | ||
|
||
<!-- Fill Braintree fields --> | ||
<fillField stepKey="fillTitleForBraintreeSettings" selector="{{BraintreeConfiguraionSection.titleForBraintreeSettings}}" userInput="{{BraintreeConfigurationData.title}}"/> | ||
<click stepKey="openEnvironmentSelect" selector="{{BraintreeConfiguraionSection.environment}}"/> | ||
<click stepKey="chooseEnvironment" selector="{{BraintreeConfiguraionSection.sandbox}}"/> | ||
<click stepKey="openPaymentActionSelect" selector="{{BraintreeConfiguraionSection.paymentActionSelect}}"/> | ||
<click stepKey="choosePaymentAction" selector="{{BraintreeConfiguraionSection.paymentAction}}"/> | ||
<fillField stepKey="fillMerchantID" selector="{{BraintreeConfiguraionSection.merchantID}}" userInput="{{BraintreeConfigurationData.merchantID}}"/> | ||
<fillField stepKey="fillPublicKey" selector="{{BraintreeConfiguraionSection.publicKey}}" userInput="{{BraintreeConfigurationData.publicKey}}"/> | ||
<fillField stepKey="fillPrivateKey" selector="{{BraintreeConfiguraionSection.privateKey}}" userInput="{{BraintreeConfigurationData.privateKey}}"/> | ||
<click stepKey="expandEnableThisSolution" selector="{{BraintreeConfiguraionSection.enableThisSolution}}"/> | ||
<click stepKey="chooseYesForEnableThisSolution" selector="{{BraintreeConfiguraionSection.yesForEnable}}"/> | ||
<click stepKey="expandEnablePayPalThroughBraintree" selector="{{BraintreeConfiguraionSection.payPalThroughBraintree}}"/> | ||
<click stepKey="chooseYesForEnablePayPalThroughBraintree" selector="{{BraintreeConfiguraionSection.yesForPayPalThroughBraintree}}"/> | ||
<click stepKey="expandAdvancedBraintreeSettings" selector="{{BraintreeConfiguraionSection.advancedBraintreeSettings}}"/> | ||
<fillField stepKey="fillMerchantAccountID" selector="{{BraintreeConfiguraionSection.merchantAccountID}}" userInput="{{BraintreeConfigurationData.merchantAccountID}}"/> | ||
<click stepKey="expandCVVVerification" selector="{{BraintreeConfiguraionSection.CVVVerification}}"/> | ||
<click stepKey="chooseYes" selector="{{BraintreeConfiguraionSection.yesForCVV}}"/> | ||
<click stepKey="expandPayPalThroughBraintree" selector="{{BraintreeConfiguraionSection.payPalThroughBraintreeSelector}}"/> | ||
<fillField stepKey="fillTitleForPayPalThroughBraintree" selector="{{BraintreeConfiguraionSection.titleForPayPalThroughBraintree}}" userInput="{{BraintreeConfigurationData.titleForPayPalThroughBraintree}}"/> | ||
<click stepKey="expandPaymentAction" selector="{{BraintreeConfiguraionSection.paymentActionInPayPal}}"/> | ||
<click stepKey="chooseAuthorize" selector="{{BraintreeConfiguraionSection.actionAuthorize}}"/> | ||
<click stepKey="save" selector="{{BraintreeConfiguraionSection.save}}"/> | ||
<waitForElementVisible selector="{{BraintreeConfiguraionSection.successfulMessage}}" stepKey="waitForSuccessfullyConfigured" time="10"/> | ||
</actionGroup> | ||
|
||
</actionGroups> |
44 changes: 44 additions & 0 deletions
44
app/code/Magento/Braintree/Test/Mftf/ActionGroup/CreateCustomerActionGroup.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,44 @@ | ||
<?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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="CreateCustomerActionGroup"> | ||
<click stepKey="openCustomers" selector="{{AdminMenuSection.customers}}"/> | ||
<waitForAjaxLoad stepKey="waitForCatalogSubmenu" time="5"/> | ||
<click stepKey="clickOnAllCustomers" selector="{{CustomersSubmenuSection.allCustomers}}"/> | ||
<waitForPageLoad stepKey="waitForProductsPage" time="10"/> | ||
<click stepKey="addNewCustomer" selector="{{CustomersPageSection.addNewCustomerButton}}"/> | ||
<waitForPageLoad stepKey="waitForNewProductPage" time="10"/> | ||
<click stepKey="AssociateToWebsite" selector="{{NewCustomerPageSection.associateToWebsite}}"/> | ||
<click stepKey="Group" selector="{{NewCustomerPageSection.group}}"/> | ||
<fillField stepKey="FillFirstName" selector="{{NewCustomerPageSection.firstName}}" userInput="{{NewCustomerData.FirstName}}"/> | ||
<fillField stepKey="FillLastName" selector="{{NewCustomerPageSection.lastName}}" userInput="{{NewCustomerData.LastName}}"/> | ||
<fillField stepKey="FillEmail" selector="{{NewCustomerPageSection.email}}" userInput="{{NewCustomerData.Email}}"/> | ||
<scrollToTopOfPage stepKey="scrollToAddresses"/> | ||
<click stepKey="goToAddresses" selector="{{NewCustomerPageSection.addresses}}"/> | ||
<waitForAjaxLoad stepKey="waitForAddresses" time="5"/> | ||
<click stepKey="AddNewAddress" selector="{{NewCustomerPageSection.addNewAddress}}"/> | ||
<waitForPageLoad stepKey="waitForAddressFields" time="5"/> | ||
<click stepKey="thickBillingAddress" selector="{{NewCustomerPageSection.defaultBillingAddress}}"/> | ||
<click stepKey="thickShippingAddress" selector="{{NewCustomerPageSection.defaultShippingAddress}}"/> | ||
<fillField stepKey="fillFirstNameForAddress" selector="{{NewCustomerPageSection.firstNameForAddress}}" userInput="{{NewCustomerData.AddressFirstName}}"/> | ||
<fillField stepKey="fillLastNameForAddress" selector="{{NewCustomerPageSection.lastNameForAddress}}" userInput="{{NewCustomerData.AddressLastName}}"/> | ||
<fillField stepKey="fillStreetAddress" selector="{{NewCustomerPageSection.streetAddress}}" userInput="{{NewCustomerData.StreetAddress}}"/> | ||
<fillField stepKey="fillCity" selector="{{NewCustomerPageSection.city}}" userInput="{{NewCustomerData.City}}"/> | ||
<click stepKey="openCountry" selector="{{NewCustomerPageSection.country}}"/> | ||
<waitForAjaxLoad stepKey="waitForCountryList" time="5"/> | ||
<click stepKey="chooseCountry" selector="{{NewCustomerPageSection.countryArmenia}}"/> | ||
<fillField stepKey="fillZip" selector="{{NewCustomerPageSection.zip}}" userInput="{{NewCustomerData.Zip}}"/> | ||
<fillField stepKey="fillPhoneNumber" selector="{{NewCustomerPageSection.phoneNumber}}" userInput="{{NewCustomerData.PhoneNumber}}"/> | ||
<waitForPageLoad stepKey="wait" time="10"/> | ||
<click stepKey="save" selector="{{NewCustomerPageSection.saveCustomer}}"/> | ||
<waitForPageLoad stepKey="waitForCustomersPage" time="10"/> | ||
<waitForElementVisible selector="{{NewCustomerPageSection.createdSuccessMessage}}" stepKey="waitForSuccessfullyCreatedMessage" time="20"/> | ||
|
||
</actionGroup> | ||
</actionGroups> |
Oops, something went wrong.