This repository was archived by the owner on Dec 19, 2019. It is now read-only.
File tree 4 files changed +42
-0
lines changed
Catalog/Test/Mftf/ActionGroup 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 21
21
<waitForElementVisible selector =" {{StorefrontMessagesSection.success}}" time =" 30" stepKey =" waitForProductAddedMessage" />
22
22
<see selector =" {{StorefrontMessagesSection.success}}" userInput =" You added {{product.name}} to your shopping cart." stepKey =" seeAddToCartSuccessMessage" />
23
23
</actionGroup >
24
+ <actionGroup name =" StorefrontAddSimpleProductWithQtyActionGroup" extends =" AddSimpleProductToCart" >
25
+ <arguments >
26
+ <argument name =" quantity" type =" string" defaultValue =" 1" />
27
+ </arguments >
28
+ <fillField userInput =" {{quantity}}" selector =" {{StorefrontProductPageSection.qtyInput}}" stepKey =" fillProductQty" after =" goToProductPage" />
29
+ </actionGroup >
24
30
</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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminCreateTaxRuleActionGroup" >
12
+ <arguments >
13
+ <argument name =" taxRate" type =" entity" />
14
+ <argument name =" taxRule" type =" entity" />
15
+ </arguments >
16
+ <!-- Create Tax Rule -->
17
+ <amOnPage url =" {{AdminTaxRuleGridPage.url}}" stepKey =" goToTaxRulePage" />
18
+ <waitForPageLoad stepKey =" waitForTaxRatePage" />
19
+ <click selector =" {{AdminGridMainControls.add}}" stepKey =" addNewTaxRate" />
20
+ <fillField selector =" {{AdminTaxRulesSection.ruleName}}" userInput =" {{taxRule.code}}" stepKey =" fillRuleName" />
21
+ <click selector =" {{AdminTaxRulesSection.selectTaxRate(taxRate.code)}}" stepKey =" selectTaxRate" />
22
+ <click selector =" {{AdminTaxRuleFormSection.additionalSettings}}" stepKey =" clickAdditionalSettings" />
23
+ <fillField userInput =" {{taxRule.priority}}" selector =" {{AdminTaxRuleFormSection.priority}}" stepKey =" fillPriority" />
24
+ <fillField userInput =" {{taxRule.position}}" selector =" {{AdminTaxRuleFormSection.sortOrder}}" stepKey =" fillPosition" />
25
+ <waitForLoadingMaskToDisappear stepKey =" waitForLoading" />
26
+ <click selector =" {{AdminStoresMainActionsSection.saveButton}}" stepKey =" clickSave" />
27
+ </actionGroup >
28
+ </actionGroups >
Original file line number Diff line number Diff line change 110
110
<data key =" tax_region_id" >51</data >
111
111
<data key =" rate" >6</data >
112
112
</entity >
113
+ <entity name =" USFullTaxRate" type =" taxRate" >
114
+ <data key =" code" unique =" suffix" >Tax Rate</data >
115
+ <data key =" tax_country_id" >US</data >
116
+ <data key =" tax_postcode" >*</data >
117
+ <data key =" zip_is_range" >0</data >
118
+ <data key =" rate" >10</data >
119
+ </entity >
113
120
</entities >
Original file line number Diff line number Diff line change 34
34
<element name =" popUpDialogOK" type =" button" selector =" //*[@class='modal-footer']//*[contains(text(),'OK')]" />
35
35
<element name =" taxRateMultiSelectItems" type =" block" selector =" .mselect-list-item" />
36
36
<element name =" taxRateNumber" type =" button" selector =" //div[@data-ui-id='tax-rate-form-fieldset-element-form-field-tax-rate']//div[@class='mselect-items-wrapper']//label[{{var}}]" parameterized =" true" />
37
+ <element name =" selectTaxRate" type =" input" selector =" //span[text()='{{taxCode}}']" parameterized =" true" />
37
38
</section >
38
39
</sections >
You can’t perform that action at this time.
0 commit comments