File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Catalog/Test/Mftf/ActionGroup Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 423
423
<click selector =" {{AdminProductGridConfirmActionSection.ok}}" stepKey =" confirmProductDelete" />
424
424
<waitForPageLoad stepKey =" waitForGridLoad" />
425
425
</actionGroup >
426
+
427
+ <actionGroup name =" deleteAllProductsUsingProductGrid" >
428
+ <annotations >
429
+ <description >Deletes all products in Admin Products grid page.</description >
430
+ </annotations >
431
+
432
+ <amOnPage url =" {{AdminProductIndexPage.url}}" stepKey =" openAdminGridProductsPage" />
433
+ <waitForPageLoad time =" 60" stepKey =" waitForPageFullyLoad" />
434
+ <conditionalClick selector =" {{AdminProductGridFilterSection.clearFilters}}" dependentSelector =" {{AdminProductGridFilterSection.clearFilters}}" visible =" true" stepKey =" clearGridFilters" />
435
+
436
+ <conditionalClick selector =" {{AdminProductGridSection.multicheckDropdown}}" dependentSelector =" {{AdminDataGridTableSection.dataGridEmpty}}" visible =" false" stepKey =" openMulticheckDropdown" />
437
+ <conditionalClick selector =" {{AdminProductGridSection.multicheckOption('Select All')}}" dependentSelector =" {{AdminDataGridTableSection.dataGridEmpty}}" visible =" false" stepKey =" selectAllProductsInGrid" />
438
+ <click selector =" {{AdminProductGridSection.bulkActionDropdown}}" stepKey =" clickActionDropdown" />
439
+ <click selector =" {{AdminProductGridSection.bulkActionOption('Delete')}}" stepKey =" clickDeleteAction" />
440
+
441
+ <waitForElementVisible selector =" {{AdminConfirmationModalSection.message}}" stepKey =" waitForConfirmModal" />
442
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" confirmDelete" />
443
+ <waitForElementVisible selector =" {{AdminDataGridTableSection.dataGridEmpty}}" stepKey =" waitGridIsEmpty" />
444
+ </actionGroup >
426
445
</actionGroups >
Original file line number Diff line number Diff line change 28
28
<!-- Delete all search terms -->
29
29
<comment userInput =" Delete all search terms" stepKey =" deleteAllSearchTermsComment" />
30
30
<actionGroup ref =" DeleteAllSearchTerms" stepKey =" deleteAllSearchTerms" />
31
+ <actionGroup ref =" deleteAllProductsUsingProductGrid" stepKey =" deleteAllProducts" />
31
32
<!-- Create product with description -->
32
33
<comment userInput =" Create product with description" stepKey =" createProductWithDescriptionComment" />
33
34
<createData entity =" SimpleProductWithDescription" stepKey =" simpleProduct" />
You can’t perform that action at this time.
0 commit comments