Skip to content

Commit 5f9c53e

Browse files
ACQE-5756: added conditional click on add new class
1 parent f503ca4 commit 5f9c53e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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="AdminAddProductTaxClassConditionalActionGroup">
12+
<annotations>
13+
<description>Adds the provided Product Tax Class to a Tax Rule. Before click on Save check Class Exist or not.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="prodTaxClassName" type="string"/>
17+
</arguments>
18+
19+
<!--Click Additional Settings-->
20+
<click stepKey="clickAdditionalSettings" selector="{{AdminTaxRulesSection.additionalSettings}}"/>
21+
<!--Click Product Add New Tax Class Button-->
22+
<click stepKey="clickProdAddNewTaxClassBtn" selector="{{AdminTaxRulesSection.productAddNewTaxClass}}"/>
23+
<!--Fill field-->
24+
<fillField stepKey="fillProdNewTaxClass" selector="{{AdminTaxRulesSection.fieldProdNewTaxClass}}" userInput="{{prodTaxClassName}}"/>
25+
<!-- Save Product tax rate -->
26+
<conditionalClick stepKey="saveProdTaxRate" selector="{{AdminTaxRulesSection.saveProdNewTaxClass}}" dependentSelector="{{AdminTaxRulesSection.selectProductTaxClass('prodTaxClassName')}}" visible="false"/>
27+
</actionGroup>
28+
</actionGroups>

0 commit comments

Comments
 (0)