-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ashish.Kumar18
authored and
Ashish.Kumar18
committed
Feb 6, 2023
1 parent
a92fa33
commit ae7989b
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
app/code/Magento/Swagger/Test/Mftf/Test/StorefrontMagentoApiSwaggerActionsExistTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="StorefrontMagentoApiSwaggerActionsExistTest"> | ||
<annotations> | ||
<features value="Swagger"/> | ||
<stories value="Swagger via the Storefront"/> | ||
<title value="Authorize and logout on Swagger page"/> | ||
<description value="Authorize and logout on Swagger page use API Key"/> | ||
<severity value="CRITICAL"/> | ||
<group value="pr_exclude"/> | ||
<group value="developer_mode_only"/> | ||
</annotations> | ||
<before> | ||
<getOTP stepKey="getOtpCode"/> | ||
<createData entity="adminApiToken" stepKey="createAdminToken"> | ||
<field key="otp">{$getOtpCode}</field> | ||
</createData> | ||
</before> | ||
<after></after> | ||
<actionGroup ref="StorefrontGoToSwaggerPageActionGroup" stepKey="goToSwaggerPage"/> | ||
<actionGroup ref="StorefrontApplyAdminTokenOnSwaggerPageActionGroup" stepKey="applyAdminToken"> | ||
<argument name="token" value="$createAdminToken.return$"/> | ||
</actionGroup> | ||
<seeElement selector="{{SwaggerApiListSection.swaggerActionTitle('storeStoreRepositoryV1')}}" stepKey="assertTitleOfFirstAction"/> | ||
<seeElement selector="{{SwaggerApiListSection.swaggerActionTitle('quoteCartRepositoryV1')}}" stepKey="assertTitleOfSecondAction"/> | ||
<seeElement selector="{{SwaggerApiListSection.swaggerActionTitle('catalogProductRepositoryV1')}}" stepKey="assertTitleOfThirdAction"/> | ||
<actionGroup ref="StorefrontSwaggerLogoutActionGroup" stepKey="swaggerLogout"/> | ||
</test> | ||
</tests> |