|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +/************************************************************************ |
| 4 | + * |
| 5 | + * Copyright 2024 Adobe |
| 6 | + * All Rights Reserved. |
| 7 | + * |
| 8 | + * ************************************************************************ |
| 9 | + */ |
| 10 | +--> |
| 11 | + |
| 12 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 13 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 14 | + <test name="AdminOrderCreateAfterHtmlMinificationTest"> |
| 15 | + <annotations> |
| 16 | + <features value="Backend"/> |
| 17 | + <stories value="Admin Panel with HTML minification"/> |
| 18 | + <title value="Admin panel should allow order creation with HTML minification enabled"/> |
| 19 | + <description value="Admin panel should allow order creation with HTML minification enabled"/> |
| 20 | + <testCaseId value="AC-12329"/> |
| 21 | + <useCaseId value="ACP2E-3169"/> |
| 22 | + <severity value="MAJOR"/> |
| 23 | + <group value="backend"/> |
| 24 | + <group value="cloud"/> |
| 25 | + </annotations> |
| 26 | + <before> |
| 27 | + <magentoCLI command="config:set {{MinifyHtmlFilesEnableConfigData.path}} {{MinifyHtmlFilesEnableConfigData.value}}" stepKey="enableHtmlMinification"/> |
| 28 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache"> |
| 29 | + <argument name="tags" value="config"/> |
| 30 | + </actionGroup> |
| 31 | + <magentoCLI command="setup:static-content:deploy -f" stepKey="deployStaticContent"/> |
| 32 | + <createData entity="Simple_US_Customer_CA" stepKey="createSimpleCustomer"/> |
| 33 | + <createData entity="ApiProductWithDescription" stepKey="createSimpleProduct"/> |
| 34 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 35 | + </before> |
| 36 | + <after> |
| 37 | + <magentoCLI command="config:set {{MinifyHtmlFilesDisableConfigData.path}} {{MinifyHtmlFilesDisableConfigData.value}}" stepKey="disableHtmlMinification"/> |
| 38 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache"> |
| 39 | + <argument name="tags" value="config"/> |
| 40 | + </actionGroup> |
| 41 | + <magentoCLI command="setup:static-content:deploy -f" stepKey="deployStaticContent"/> |
| 42 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 43 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/> |
| 44 | + <deleteData createDataKey="createSimpleCustomer" stepKey="deleteSimpleCustomer"/> |
| 45 | + </after> |
| 46 | + <waitForPageLoad stepKey="waitForPageLoadOnDashboard"/> |
| 47 | + <actionGroup ref="AssertAdminPageTitleActionGroup" stepKey="seeDashboardTitle"> |
| 48 | + <argument name="value" value="Dashboard"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="CreateOrderActionGroup" stepKey="createOrder"> |
| 51 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 52 | + <argument name="customer" value="$$createSimpleCustomer$$"/> |
| 53 | + </actionGroup> |
| 54 | + </test> |
| 55 | +</tests> |
0 commit comments