File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Customer/Test/Mftf/ActionGroup Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 19
19
<group value =" configuration" />
20
20
</annotations >
21
21
<before >
22
- <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
23
22
<createData entity =" EnableAdminAccountAllowCountry" stepKey =" setAllowedCountries" />
24
23
</before >
25
24
<after >
26
25
<createData entity =" DisableAdminAccountAllowCountry" stepKey =" setDefaultValueForAllowCountries" />
26
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
27
+ <actionGroup ref =" DeleteCustomerAdminActionGroup" stepKey =" deleteCustomer" >
28
+ <argument name =" customer" value =" CustomerEntityOne" />
29
+ </actionGroup >
30
+ <actionGroup ref =" AdminClearCustomersFiltersActionGroup" stepKey =" clearFilters" />
31
+ <waitForPageLoad stepKey =" WaitForPageToLoad" />
27
32
<actionGroup ref =" logout" stepKey =" logout" />
28
33
</after >
29
34
<!-- Flush Magento Cache-->
Original file line number Diff line number Diff line change 35
35
<click selector =" {{AdminCustomerGridMainActionsSection.delete}}" stepKey =" clickDelete" />
36
36
<waitForAjaxLoad stepKey =" waitForLoadConfirmation" />
37
37
<click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" confirmDelete" />
38
+ <wait time =" 5" stepKey =" aaa" />
38
39
<see selector =" {{AdminMessagesSection.successMessage}}" userInput =" A total of 1 record(s) were deleted" stepKey =" seeSuccess" />
39
40
</actionGroup >
41
+
42
+ <actionGroup name =" DeleteCustomerAdminActionGroup" extends =" DeleteCustomerFromAdminActionGroup" >
43
+ <arguments >
44
+ <argument name =" customer" />
45
+ </arguments >
46
+ <remove keyForRemoval =" fillSearch" />
47
+ <remove keyForRemoval =" clickSubmit" />
48
+ <click selector =" {{AdminDataGridHeaderSection.filters}}" stepKey =" openFiltersSectionOnCustomerPage" after =" clickOnButtonToRemoveFiltersIfPresent" />
49
+ <fillField userInput =" {{customer.email}}" selector =" {{AdminDataGridHeaderSection.filterFieldInput('email')}}" stepKey =" fillEmailOnFiltersSection" after =" openFiltersSectionOnCustomerPage" />
50
+ <click selector =" {{AdminDataGridHeaderSection.applyFilters}}" stepKey =" clickApplyFiltersButton" after =" fillEmailOnFiltersSection" />
51
+ </actionGroup >
52
+
40
53
<actionGroup name =" AdminClearCustomersFiltersActionGroup" >
41
54
<amOnPage url =" {{AdminCustomerPage.url}}" stepKey =" amOnCustomersPage" />
42
55
<waitForPageLoad stepKey =" WaitForPageToLoad" />
You can’t perform that action at this time.
0 commit comments