File tree Expand file tree Collapse file tree 5 files changed +68
-1
lines changed
Customer/Test/Mftf/ActionGroup Expand file tree Collapse file tree 5 files changed +68
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <!-- Set base currency -->
12
+ <actionGroup name =" AdminSetBaseCurrencyActionGroup" extends =" AdminSaveConfigActionGroup" >
13
+ <arguments >
14
+ <argument name =" currency" type =" string" />
15
+ </arguments >
16
+ <uncheckOption selector =" {{CurrencySetupSection.baseCurrencyUseDefault}}" before =" clickSaveConfigBtn" stepKey =" uncheckUseDefaultOption" />
17
+ <selectOption selector =" {{CurrencySetupSection.baseCurrency}}" userInput =" {{currency}}" after =" uncheckUseDefaultOption" stepKey =" setBaseCurrencyField" />
18
+ </actionGroup >
19
+ </actionGroups >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <pages xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/PageObject.xsd" >
11
+ <page name =" ConfigCurrencySetupPage" url =" admin/system_config/edit/section/currency" area =" admin" module =" Magento_Config" >
12
+ </page >
13
+ </pages >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
+ <section name =" CurrencySetupSection" >
12
+ <element name =" baseCurrency" type =" select" selector =" #currency_options_base" />
13
+ <element name =" baseCurrencyUseDefault" type =" checkbox" selector =" #currency_options_base_inherit" />
14
+ </section >
15
+ </sections >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <!-- Action group clears filters on Admin Customers index page -->
12
+ <actionGroup name =" AdminClearCustomersFiltersActionGroup" >
13
+ <amOnPage url =" {{AdminCustomerPage.url}}" stepKey =" goToCustomerIndexPage" />
14
+ <conditionalClick selector =" {{AdminDataGridHeaderSection.clearFilters}}" dependentSelector =" {{AdminDataGridHeaderSection.clearFilters}}" visible =" true" stepKey =" clickOnButtonToRemoveFiltersIfPresent" />
15
+ </actionGroup >
16
+ </actionGroups >
Original file line number Diff line number Diff line change 5
5
* See COPYING.txt for license details.
6
6
*/
7
7
-->
8
+
8
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <!-- Action group deletes customer by customer email field -->
10
12
<actionGroup name =" AdminDeleteCustomerActionGroup" >
11
13
<arguments >
12
14
<argument name =" customerEmail" />
13
15
</arguments >
14
16
<amOnPage url =" {{AdminCustomerPage.url}}" stepKey =" navigateToCustomersPage" />
15
- <waitForPageLoad stepKey =" waitForCustomerPageLoad" />
16
17
<conditionalClick selector =" {{AdminCustomerFiltersSection.clearAll}}" dependentSelector =" {{AdminCustomerFiltersSection.clearAll}}" visible =" true" stepKey =" clickClearFilters" />
18
+ <click selector =" {{AdminDataGridHeaderSection.filters}}" stepKey =" openFilters" />
19
+ <fillField selector =" {{AdminCustomerFiltersSection.emailInput}}" userInput =" {{customerEmail}}" stepKey =" filterCustomersByEmail" />
20
+ <click selector =" {{AdminDataGridHeaderSection.applyFilters}}" stepKey =" applyFilters" />
17
21
<click selector =" {{AdminCustomerGridMainActionsSection.customerCheckbox(customerEmail)}}" stepKey =" chooseCustomer" />
18
22
<click selector =" {{AdminCustomerGridMainActionsSection.actions}}" stepKey =" openActions" />
19
23
<waitForPageLoad stepKey =" waitActions" />
You can’t perform that action at this time.
0 commit comments