|
| 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="AdminMassDeleteWidgetActionGroup"> |
| 12 | + <annotations> |
| 13 | + <description>Goes to the Admin Widgets list page. Mass delete widgets.</description> |
| 14 | + </annotations> |
| 15 | + <arguments> |
| 16 | + <argument name="row" type="string"/> |
| 17 | + </arguments> |
| 18 | + |
| 19 | + <amOnPage url="{{AdminWidgetsPage.url}}" stepKey="visitAdminWidetPage"/> |
| 20 | + <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" |
| 21 | + dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" |
| 22 | + visible="true" stepKey="clickClearFilters"/> |
| 23 | + |
| 24 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear1"/> |
| 25 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 26 | + <click selector="{{AdminWidgetsSection.massActionSelect}}" stepKey="massActionSelectClick"/> |
| 27 | + <click selector="{{AdminWidgetsSection.massActionSelectOptionAll}}" stepKey="massActionSelectOptionAllClick"/> |
| 28 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear2"/> |
| 29 | + <click selector="{{AdminWidgetsSection.massActionSelectAction}}" stepKey="massActionSelectActionClick"/> |
| 30 | + <click selector="{{AdminWidgetsSection.massActionSelectActionDelete}}" stepKey="massActionSelectActionDeleteClick"/> |
| 31 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear3"/> |
| 32 | + <click selector="{{AdminWidgetsSection.massActionSelectActionDeleteSubmit}}" stepKey="massActionSelectActionDeleteSubmitClick1"/> |
| 33 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear4"/> |
| 34 | + <seeElement selector="{{AdminWidgetsSection.WidgetViewModalDismiss}}" stepKey="widgetViewModalDismissSeeElement"/> |
| 35 | + <waitForPageLoad stepKey="waitForPageLoad3"/> |
| 36 | + <seeElement selector="{{AdminWidgetsSection.WidgetViewModalClose}}" stepKey="widgetViewModalCloseSeeElement"/> |
| 37 | + <click selector="{{AdminWidgetsSection.WidgetViewModalDismiss}}" stepKey="widgetViewModalDismissClick"/> |
| 38 | + <waitForElementNotVisible selector="{{AdminWidgetsSection.WidgetViewModalDismiss}}" stepKey="waitForModalClosed"/> |
| 39 | + <seeElement selector="{{AdminWidgetsSection.WidgetViewGridInstanceId(row)}}" stepKey="widgetViewGridRowSeeElement"/> |
| 40 | + <waitForPageLoad stepKey="waitForPageLoad4"/> |
| 41 | + <waitForElementVisible selector="{{AdminWidgetsSection.WidgetViewGridInstanceId(row)}}" stepKey="widgetViewGridInstanceIdWaitForElementVisible"/> |
| 42 | + <click selector="{{AdminWidgetsSection.massActionSelectActionDeleteSubmit}}" stepKey="massActionSelectActionDeleteSubmitClick2"/> |
| 43 | + <waitForElementVisible selector="{{AdminWidgetsSection.WidgetViewModalAccept}}" stepKey="waitForModalVisible"/> |
| 44 | + <click selector="{{AdminWidgetsSection.WidgetViewModalAccept}}" stepKey="widgetViewModalAcceptClick"/> |
| 45 | + <waitForPageLoad stepKey="waitForPageLoad5" /> |
| 46 | + <waitForElementVisible selector="{{AdminWidgetsSection.WidgetViewGridInstanceRow(row)}}" stepKey="widgetViewGridInstanceRowWaitForElementVisible"/> |
| 47 | + <dontSeeElement selector="{{AdminWidgetsSection.WidgetViewGridInstanceId(row)}}" stepKey="widgetViewGridRowDontSeeElement"/> |
| 48 | + </actionGroup> |
| 49 | +</actionGroups> |
0 commit comments