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.
 
 
 
 
 
 

28 lines
1.4 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" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  9. <actionGroup name="StorefrontApplyAdminTokenOnSwaggerPageActionGroup">
  10. <annotations>
  11. <description>Apply Admin Token on Swagger Page</description>
  12. </annotations>
  13. <arguments>
  14. <argument name="token" type="string" defaultValue=""/>
  15. </arguments>
  16. <click selector="{{SwaggerAuthorizeSection.authorizeButtonUnlocked}}" stepKey="clickAuthorizeButton"/>
  17. <waitForElementVisible selector="{{SwaggerAuthorizeSection.apiKeyInput}}" stepKey="waitModalPopUp"/>
  18. <clearField selector="{{SwaggerAuthorizeSection.apiKeyInput}}" stepKey="clearApiTokenField"/>
  19. <fillField selector="{{SwaggerAuthorizeSection.apiKeyInput}}" userInput="{{token}}" stepKey="fillApiTokenInput"/>
  20. <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickApplyButton"/>
  21. <click selector="{{SwaggerAuthorizeSection.authorizeModalButton}}" stepKey="clickModalAuthorizeButton"/>
  22. <waitForPageLoad stepKey="waitForPageReloaded"/>
  23. <click selector="{{SwaggerAuthorizeSection.closeModalButton}}" stepKey="clickModalCloseButton"/>
  24. </actionGroup>
  25. </actionGroups>