Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

32 строки
2.0 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="DeleteCustomWebsiteActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Stores grid page. Searches the grid for the provided Website Name. Deletes the provided Website Name. Validates that the Success Message is present and correct.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="websiteName" defaultValue="customWebsite.name"/>
  16. </arguments>
  17. <amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnTheStorePage"/>
  18. <click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickOnResetButton"/>
  19. <fillField userInput="{{websiteName}}" selector="{{AdminStoresGridSection.websiteFilterTextField}}" stepKey="fillSearchWebsiteField"/>
  20. <click selector="{{AdminStoresGridSection.searchButton}}" stepKey="clickSearchButton"/>
  21. <see userInput="{{websiteName}}" selector="{{AdminStoresGridSection.websiteNameInFirstRow}}" stepKey="verifyThatCorrectWebsiteFound"/>
  22. <click selector="{{AdminStoresGridSection.websiteNameInFirstRow}}" stepKey="clickEditExistingWebsite"/>
  23. <waitForPageLoad stepKey="waitForPageLoadAfterWebsiteSelected" time="30"/>
  24. <click selector="{{AdminStoresMainActionsSection.deleteButton}}" stepKey="clickDeleteWebsiteButtonOnEditStorePage"/>
  25. <selectOption userInput="No" selector="{{AdminStoresDeleteWebsiteSection.createDbBackup}}" stepKey="setCreateDbBackupToNo"/>
  26. <click selector="{{AdminStoresDeleteWebsiteSection.deleteButton}}" stepKey="clickDeleteButtonOnDeleteWebsitePage"/>
  27. <see selector="{{AdminMessagesSection.success}}" userInput="You deleted the website." stepKey="checkSuccessMessage"/>
  28. </actionGroup>
  29. </actionGroups>