File tree Expand file tree Collapse file tree 4 files changed +21
-9
lines changed
app/code/Magento/Swagger/Test/Mftf Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 77-->
88
99<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10- <actionGroup name =" ApplyAdminTokenOnSwaggerPageActionGroup " >
10+ <actionGroup name =" StorefrontApplyAdminTokenOnSwaggerPageActionGroup " >
1111 <annotations >
1212 <description >Apply Admin Token on Swagger Page</description >
1313 </annotations >
1414 <arguments >
1515 <argument name =" token" type =" string" defaultValue =" " />
1616 </arguments >
1717
18- <clearField selector =" {{SwaggerSection.apiKeyInput}}" stepKey =" clearApiTokenField" />
19- <fillField selector =" {{SwaggerSection.apiKeyInput}}" userInput =" {{token}}" stepKey =" fillApiTokenInput" />
20- <click selector =" {{SwaggerSection.applyButton}}" stepKey =" clickApplyButton" />
21- <waitForPageLoad stepKey =" waitPageLoad" />
18+ <clearField selector =" {{SwaggerHeaderSection.apiKeyInput}}" stepKey =" clearApiTokenField" />
19+ <fillField selector =" {{SwaggerHeaderSection.apiKeyInput}}" userInput =" {{token}}" stepKey =" fillApiTokenInput" />
20+ <click selector =" {{SwaggerHeaderSection.applyButton}}" stepKey =" clickApplyButton" />
2221 </actionGroup >
2322</actionGroups >
Original file line number Diff line number Diff line change 88
99<pages xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/PageObject.xsd" >
1010 <page name =" StorefrontSwaggerPage" url =" /swagger" area =" storefront" module =" Swagger" >
11- <section name =" SwaggerSection" />
11+ <section name =" SwaggerHeaderSection" />
12+ <section name =" SwaggerApiListSection" />
1213 </page >
1314</pages >
Original file line number Diff line number Diff line change 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+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
10+ <section name =" SwaggerApiListSection" >
11+ <element name =" swaggerActionTitle" type =" text" selector =" #operations-tag-{{operationName}}" parameterized =" true" />
12+ </section >
13+ </sections >
Original file line number Diff line number Diff line change 77-->
88
99<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
10- <section name =" SwaggerSection " >
10+ <section name =" SwaggerHeaderSection " >
1111 <element name =" apiKeyInput" type =" input" selector =" #input_apiKey" />
12- <element name =" applyButton" type =" button" selector =" #explore" />
13- <element name =" swaggerActionTitle" type =" text" selector =" #operations-tag-{{operationName}}" parameterized =" true" />
12+ <element name =" applyButton" type =" button" selector =" #explore" timeout =" 30" />
1413 </section >
1514</sections >
You can’t perform that action at this time.
0 commit comments