|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminMassProductAttributeUpdateAddedToQueueTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Catalog"/> |
| 14 | + <stories value="Mass update product attributes"/> |
| 15 | + <title value="Check functionality of RabbitMQ"/> |
| 16 | + <description value="Mass product attribute update task should be added to the queue"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="MC-28990"/> |
| 19 | + <useCaseId value="MC-29179"/> |
| 20 | + <group value="catalog"/> |
| 21 | + <group value="asynchronousOperations"/> |
| 22 | + <group value="productAttributes"/> |
| 23 | + </annotations> |
| 24 | + <before> |
| 25 | + <createData entity="ApiProductWithDescription" stepKey="createFirstProduct"/> |
| 26 | + <createData entity="ApiProductWithDescription" stepKey="createSecondProduct"/> |
| 27 | + <createData entity="ApiProductNameWithNoSpaces" stepKey="createThirdProduct"/> |
| 28 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 29 | + </before> |
| 30 | + <after> |
| 31 | + <deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/> |
| 32 | + <deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/> |
| 33 | + <deleteData createDataKey="createThirdProduct" stepKey="deleteThirdProduct"/> |
| 34 | + <actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductFilter"/> |
| 35 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
| 36 | + </after> |
| 37 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/> |
| 38 | + <actionGroup ref="SearchProductGridByKeyword2ActionGroup" stepKey="searchByKeyword"> |
| 39 | + <argument name="keyword" value="api-simple-product"/> |
| 40 | + </actionGroup> |
| 41 | + <actionGroup ref="SortProductsByIdDescendingActionGroup" stepKey="sortProductsByIdDescending"/> |
| 42 | + <click selector="{{AdminProductGridSection.productGridCheckboxOnRow('1')}}" stepKey="selectThirdProduct"/> |
| 43 | + <click selector="{{AdminProductGridSection.productGridCheckboxOnRow('2')}}" stepKey="selectSecondProduct"/> |
| 44 | + <click selector="{{AdminProductGridSection.productGridCheckboxOnRow('3')}}" stepKey="selectFirstProduct"/> |
| 45 | + <actionGroup ref="AdminClickMassUpdateProductAttributesActionGroup" stepKey="goToUpdateProductAttributesPage"/> |
| 46 | + <checkOption selector="{{AdminEditProductAttributesSection.changeAttributeShortDescriptionToggle}}" stepKey="toggleToChangeShortDescription"/> |
| 47 | + <fillField selector="{{AdminEditProductAttributesSection.attributeShortDescription}}" userInput="Test Update" stepKey="fillShortDescriptionField"/> |
| 48 | + <actionGroup ref="AdminSaveProductsMassAttributesUpdateActionGroup" stepKey="saveMassAttributeUpdate"/> |
| 49 | + <see selector="{{AdminMessagesSection.success}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/> |
| 50 | + <see selector="{{AdminSystemMessagesSection.info}}" userInput="Task "Update attributes for 3 selected products": 1 item(s) have been scheduled for update." stepKey="seeInfoMessage"/> |
| 51 | + <click selector="{{AdminSystemMessagesSection.viewDetailsLink}}" stepKey="seeDetails"/> |
| 52 | + <see selector="{{AdminBulkDetailsModalSection.descriptionValue}}" userInput="Update attributes for 3 selected products" stepKey="seeDescription"/> |
| 53 | + <see selector="{{AdminBulkDetailsModalSection.summaryValue}}" userInput="Pending, in queue..." stepKey="seeSummary"/> |
| 54 | + <grabTextFrom selector="{{AdminBulkDetailsModalSection.startTimeValue}}" stepKey="grabStartTimeValue"/> |
| 55 | + <assertRegExp stepKey="assertStartTime"> |
| 56 | + <expectedResult type="string">/\d{1,2}\/\d{2}\/\d{4}\s\d{1,2}:\d{2}:\d{2}\s(AM|PM)/</expectedResult> |
| 57 | + <actualResult type="variable">grabStartTimeValue</actualResult> |
| 58 | + </assertRegExp> |
| 59 | + </test> |
| 60 | +</tests> |
0 commit comments