-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from magento-tsg/MQE-2554
[Sidecar] MQE-2554: Create automated test for: "User sees Adobe Stock actions from API"
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
AdobeStockImage/Test/Mftf/Test/StorefrontAdobeStockIntegrationApiSwaggerActionsExistTest.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,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* 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="StorefrontAdobeStockIntegrationApiSwaggerActionsExistTest"> | ||
<annotations> | ||
<features value="AdobeStockImage"/> | ||
<stories value="Adobe Stock API actions"/> | ||
<title value="User sees Adobe Stock actions from API"/> | ||
<testCaseId value="https://studio.cucumber.io/projects/131313/test-plan/folders/1051731/scenarios/4297030"/> | ||
<description value="Adobe stock actions are available on the Swagger page"/> | ||
<severity value="CRITICAL"/> | ||
</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('adobeStockAssetApiAssetRepositoryV1')}}" stepKey="assertTitleOfFirtsAction"/> | ||
<seeElement selector="{{SwaggerApiListSection.swaggerActionTitle('adobeStockImageApiGetImageListV1')}}" stepKey="assertTitleOfSecondAction"/> | ||
<seeElement selector="{{SwaggerApiListSection.swaggerActionTitle('adobeStockAssetApiGetAssetListV1')}}" stepKey="assertTitleOfThirdAction"/> | ||
</test> | ||
</tests> |