Skip to content

Commit 9f9f518

Browse files
MAGETWO-91639: Tax is added despite customer group changes
- Update automated test
1 parent e9f5308 commit 9f9f518

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminDeleteCustomerGroupActionGroup.xml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,20 @@
77
-->
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminDeleteCustomerGroupActionGroup">
1212
<arguments>
1313
<argument name="customerGroupName" type="string"/>
1414
</arguments>
15-
<amOnPage url="{{AdminCustomerGroupPage.url}}" stepKey="navigateToCustomersGroupPage"/>
16-
<waitForPageLoad stepKey="waitForPageOpened"/>
17-
<click stepKey="clickFiltersBtn" selector="{{AdminCustomerGroupMainSection.filterBtn}}"/>
18-
<fillField selector="{{AdminCustomerGroupMainSection.groupField}}" userInput="{{groupName}}" stepKey="fillFieldGroupName"/>
19-
<click stepKey="clickApplyBtn" selector="{{AdminCustomerGroupMainSection.applyFiltersBtn}}"/>
20-
<!--Here we need to use Implicit wait.-->
21-
<wait stepKey="waitForFilteringFinished" time="2"/>
22-
<click stepKey="clickSelectBtn" selector="{{AdminCustomerGroupMainSection.selectFirstRow}}"/>
23-
<wait stepKey="waitForDropDownOpened" time="2"/>
24-
<click stepKey="clickDeleteBtn" selector="{{AdminCustomerGroupMainSection.deleteBtn}}"/>
25-
<waitForPageLoad stepKey="waitForConfirmationAlert"/>
26-
<click stepKey="accept" selector="{{AdminCustomerGridMainActionsSection.ok}}"/>
27-
<see stepKey="seeSuccessMessage" userInput="You deleted the customer group."/>
28-
<wait stepKey="waitForClearAllBtnVisible" time="2"/>
29-
<click stepKey="clearAllBtn" selector="{{AdminCustomerGroupMainSection.clearAllBtn}}"/>
30-
<waitForElementNotVisible selector="{{AdminCustomerGroupMainSection.clearAllBtn}}" stepKey="waitForElementNotVisible"/>
15+
<amOnPage url="{{AdminCustomerGroupsIndexPage.url}}" stepKey="goToAdminCustomerGroupIndexPage"/>
16+
<waitForPageLoad time="30" stepKey="waitForCustomerGroupIndexPageLoad"/>
17+
<click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openFiltersSectionOnCustomerGroupIndexPage"/>
18+
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="cleanFiltersIfTheySet"/>
19+
<fillField userInput="{{customerGroupName}}" selector="{{AdminDataGridHeaderSection.filterFieldInput('customer_group_code')}}" stepKey="fillNameFieldOnFiltersSection"/>
20+
<click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickApplyFiltersButton"/>
21+
<click selector="{{AdminCustomerGroupGridActionsSection.selectButton('customerGroupName')}}" stepKey="clickSelectButton"/>
22+
<click selector="{{AdminCustomerGroupGridActionsSection.deleteAction('customerGroupName')}}" stepKey="clickOnDeleteItem"/>
23+
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmDeleteCustomerGroup"/>
24+
<seeElement selector="{{AdminMessagesSection.success}}" stepKey="seeSuccessMessage"/>
3125
</actionGroup>
3226
</actionGroups>

0 commit comments

Comments
 (0)