Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

38 righe
2.1 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="DeleteImageFromStorageActionGroup">
  11. <annotations>
  12. <description>Deletes the provided Image from Storage.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="Image"/>
  16. </arguments>
  17. <waitForElementVisible selector="{{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="waitForInitialImages"/>
  18. <grabMultiple selector="{{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="initialImages"/>
  19. <waitForElementVisible selector="{{MediaGallerySection.lastImageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="waitForLastImage"/>
  20. <click selector="{{MediaGallerySection.lastImageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="selectImage"/>
  21. <waitForElementVisible selector="{{MediaGallerySection.DeleteSelectedBtn}}" stepKey="waitForDeleteBtn"/>
  22. <click selector="{{MediaGallerySection.DeleteSelectedBtn}}" stepKey="clickDeleteSelected"/>
  23. <waitForPageLoad stepKey="waitForPageLoad1"/>
  24. <waitForElementVisible selector="{{MediaGallerySection.confirmDelete}}" stepKey="waitForConfirmBtn"/>
  25. <click selector="{{MediaGallerySection.confirmDelete}}" stepKey="clickConfirmBtn"/>
  26. <waitForPageLoad stepKey="waitForPageLoad2"/>
  27. <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
  28. <grabMultiple selector="{{MediaGallerySection.imageOrImageCopy(Image.fileName, Image.extension)}}" stepKey="newImages"/>
  29. <assertLessThan stepKey="assertLessImages">
  30. <expectedResult type="variable">initialImages</expectedResult>
  31. <actualResult type="variable">newImages</actualResult>
  32. </assertLessThan>
  33. </actionGroup>
  34. </actionGroups>