|
21 | 21 |
|
22 | 22 | <before>
|
23 | 23 | <createData entity="ApiCategory" stepKey="createCategory"/>
|
24 |
| - <createData entity="ApiConfigurableProduct" stepKey="createFirstProduct"> |
| 24 | + <createData entity="ApiConfigurableProduct" stepKey="createProduct1"> |
25 | 25 | <requiredEntity createDataKey="createCategory"/>
|
26 | 26 | </createData>
|
27 |
| - <createData entity="ApiConfigurableProduct" stepKey="createSecondProduct"> |
| 27 | + <createData entity="ApiConfigurableProduct" stepKey="createProduct2"> |
28 | 28 | <requiredEntity createDataKey="createCategory"/>
|
29 | 29 | </createData>
|
30 |
| - <createData entity="ApiConfigurableProduct" stepKey="createThirdProduct"> |
| 30 | + <createData entity="ApiConfigurableProduct" stepKey="createProduct3"> |
31 | 31 | <requiredEntity createDataKey="createCategory"/>
|
32 | 32 | </createData>
|
33 | 33 | <actionGroup ref="LoginAsAdmin" stepKey="login"/>
|
34 | 34 | </before>
|
35 | 35 |
|
36 | 36 | <after>
|
37 | 37 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
38 |
| - <deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/> |
39 |
| - <deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/> |
40 |
| - <deleteData createDataKey="createThirdProduct" stepKey="deleteThirdProduct"/> |
| 38 | + <deleteData createDataKey="createProduct1" stepKey="deleteFirstProduct"/> |
| 39 | + <deleteData createDataKey="createProduct2" stepKey="deleteSecondProduct"/> |
| 40 | + <deleteData createDataKey="createProduct3" stepKey="deleteThirdProduct"/> |
41 | 41 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="goToProductList"/>
|
42 | 42 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
43 | 43 | <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearProductsGridFilters"/>
|
|
46 | 46 |
|
47 | 47 | <!-- Search for prefix of the 3 products we created via api -->
|
48 | 48 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="goToProductList"/>
|
49 |
| - <waitForPageLoad stepKey="waitForProductIndexPageLoad"/> |
| 49 | + <waitForPageLoad stepKey="wait1"/> |
50 | 50 | <conditionalClick selector="{{AdminProductGridFilterSection.clearAll}}" dependentSelector="{{AdminProductGridFilterSection.clearAll}}" visible="true" stepKey="clearAll"/>
|
51 | 51 | <actionGroup ref="searchProductGridByKeyword" stepKey="searchForProduct">
|
52 | 52 | <argument name="keyword" value="ApiConfigurableProduct.name"/>
|
|
57 | 57 | <click selector="{{AdminProductGridSection.multicheckOption('Select All')}}" stepKey="selectAllProductInFilteredGrid"/>
|
58 | 58 | <click selector="{{AdminProductGridSection.bulkActionDropdown}}" stepKey="clickActionDropdown"/>
|
59 | 59 | <click selector="{{AdminProductGridSection.bulkActionOption('Update attributes')}}" stepKey="clickBulkUpdate"/>
|
60 |
| - <waitForPageLoad stepKey="waitForUpdateAttributesPageLoad"/> |
| 60 | + <waitForPageLoad stepKey="wait2"/> |
61 | 61 |
|
62 | 62 | <!-- Update the description -->
|
63 | 63 | <click selector="{{AdminUpdateAttributesSection.toggleDescription}}" stepKey="clickToggleDescription"/>
|
64 | 64 | <fillField selector="{{AdminUpdateAttributesSection.description}}" userInput="MFTF automation!" stepKey="fillDescription"/>
|
65 |
| - <click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="save"/> |
66 |
| - <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="waitForSuccessMessage"/> |
| 65 | + <click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="clickSave"/> |
| 66 | + <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" time="60" stepKey="waitForSuccessMessage"/> |
67 | 67 | <see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/>
|
68 | 68 |
|
69 | 69 | <!-- Run cron twice -->
|
70 |
| - <magentoCLI command="cron:run" arguments="--group=consumers" stepKey="cronSchedule"/> |
71 |
| - <magentoCLI command="cron:run" arguments="--group=consumers" stepKey="cronRun"/> |
| 70 | + <magentoCLI command="cron:run" arguments="--group=consumers" stepKey="runCron1"/> |
| 71 | + <magentoCLI command="cron:run" arguments="--group=consumers" stepKey="runCron2"/> |
72 | 72 | <magentoCLI command="indexer:reindex" stepKey="reindex"/>
|
73 | 73 |
|
74 | 74 | <!-- Check storefront for description -->
|
75 |
| - <amOnPage url="{{StorefrontProductPage.url($$createFirstProduct.custom_attributes[url_key]$$)}}" stepKey="goToFirstProductPageOnStorefront"/> |
| 75 | + <amOnPage url="{{StorefrontProductPage.url($$createProduct1.custom_attributes[url_key]$$)}}" stepKey="goToFirstProductPageOnStorefront"/> |
76 | 76 | <waitForPageLoad stepKey="waitForFirstProductPageLoad"/>
|
77 | 77 | <see selector="{{StorefrontProductInfoMainSection.productDescription}}" userInput="MFTF automation!" stepKey="seeFirstDescription"/>
|
78 |
| - <amOnPage url="{{StorefrontProductPage.url($$createSecondProduct.custom_attributes[url_key]$$)}}" stepKey="goToSecondProductPageOnStorefront"/> |
| 78 | + <amOnPage url="{{StorefrontProductPage.url($$createProduct2.custom_attributes[url_key]$$)}}" stepKey="goToSecondProductPageOnStorefront"/> |
79 | 79 | <waitForPageLoad stepKey="waitForSecondProductPageLoad"/>
|
80 | 80 | <see selector="{{StorefrontProductInfoMainSection.productDescription}}" userInput="MFTF automation!" stepKey="seeSecondDescription"/>
|
81 |
| - <amOnPage url="{{StorefrontProductPage.url($$createThirdProduct.custom_attributes[url_key]$$)}}" stepKey="goToThirdProductPageOnStorefront"/> |
| 81 | + <amOnPage url="{{StorefrontProductPage.url($$createProduct3.custom_attributes[url_key]$$)}}" stepKey="goToThirdProductPageOnStorefront"/> |
82 | 82 | <waitForPageLoad stepKey="waitForThirdProductPageLoad"/>
|
83 | 83 | <see selector="{{StorefrontProductInfoMainSection.productDescription}}" userInput="MFTF automation!" stepKey="seeThirdDescription"/>
|
84 | 84 | </test>
|
|
0 commit comments