You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
2.2 KiB

  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. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  10. <actionGroup name="AdminBackupDeleteActionGroup">
  11. <annotations>
  12. <description>Deletes a Backup using provided Backup Entity.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="backup"/>
  16. </arguments>
  17. <waitForElementVisible selector="{{AdminGridTableSection.backupTypeByName(backup.name)}}" stepKey="seeBackupInGrid"/>
  18. <executeJS function="return document.evaluate(&quot;{{AdminGridTableSection.backupTypeByName(backup.name)}}&quot;, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotLength-1" stepKey="expectedDatabaseBackupCount"/>
  19. <click selector="{{AdminGridTableSection.backupRowCheckbox(backup.name)}}" stepKey="selectBackupRow"/>
  20. <selectOption selector="{{AdminGridActionSection.actionSelect}}" userInput="Delete" stepKey="selectDeleteAction"/>
  21. <click selector="{{AdminGridActionSection.submitButton}}" stepKey="clickSubmit"/>
  22. <waitForPageLoad stepKey="waitForConfirmWindowToAppear"/>
  23. <see selector="{{AdminConfirmationModalSection.message}}" userInput="Are you sure you want to delete the selected backup(s)?" stepKey="seeConfirmationModal"/>
  24. <waitForPageLoad stepKey="waitForSubmitAction"/>
  25. <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="clickOkConfirmDelete"/>
  26. <executeJS function="return document.evaluate(&quot;{{AdminGridTableSection.backupTypeByName(backup.name)}}&quot;, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotLength" stepKey="resultingDatabaseBackupCount"/>
  27. <assertEquals stepKey="assertDatabaseBackupDeleted">
  28. <actualResult type="variable">$resultingDatabaseBackupCount</actualResult>
  29. <expectedResult type="variable">$expectedDatabaseBackupCount</expectedResult>
  30. </assertEquals>
  31. <comment userInput="BIC workaround" stepKey="dontSeeBackupInGrid"/>
  32. </actionGroup>
  33. </actionGroups>