|
23 | 23 | <requiredEntity createDataKey="createPreReqCategory"/>
|
24 | 24 | </createData>
|
25 | 25 | <actionGroup ref="AdminGoToCacheManagementPageActionGroup" stepKey="goToCacheManagementPage"/>
|
| 26 | + <waitForText selector="{{AdminMessagesSection.assertCacheManagementLayoutsStatus}}" userInput="ENABLED" stepKey="verifyCacheTypeLayoutsIsENABLED"/> |
26 | 27 | </before>
|
27 | 28 | <after>
|
28 | 29 | <!-- Delete category -->
|
|
31 | 32 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
32 | 33 | <!--Restore currency symbols to default-->
|
33 | 34 | <actionGroup ref="AdminNavigateToCurrencySymbolsPageActionGroup" stepKey="navigateToCurrencySymbolsPageToRestore"/>
|
34 |
| - <checkOption selector="{{InputCurrencySymbolSection.checkValue}}" stepKey="checkConfigSettingsMessage"/> |
35 |
| - <waitForElementClickable selector="{{InputCurrencySymbolSection.saveCurrencySymbol}}" stepKey="waitForSaveCurrencySymbolAgain"/> |
36 |
| - <click selector="{{InputCurrencySymbolSection.saveCurrencySymbol}}" stepKey="clickSaveCurrencySymbolsToRestore"/> |
37 |
| - <!-- Reindex and Flush Cache--> |
38 |
| - <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCachesAfterModulesDisabled1"> |
| 35 | + <checkOption selector="{{AdminCurrencySymbolsGridSection.currencyCheckBox}}" stepKey="checkConfigSettingsMessage"/> |
| 36 | + <waitForElementClickable selector="{{AdminCurrencySymbolsGridSection.saveCurrencySymbols}}" stepKey="waitForSaveCurrencySymbolAgain"/> |
| 37 | + <click selector="{{AdminCurrencySymbolsGridSection.saveCurrencySymbols}}" stepKey="clickSaveCurrencySymbolsToRestore"/> |
| 38 | + <!-- Flush Cache--> |
| 39 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCachesAfterRevokingTheChangesToDefault"> |
39 | 40 | <argument name="tags" value="" />
|
40 | 41 | </actionGroup>
|
41 | 42 | <!-- Log out -->
|
|
46 | 47 | <argument name="page" value="$$createProduct.name$$.html"/>
|
47 | 48 | </actionGroup>
|
48 | 49 | <!--Assert Currency symbol-->
|
49 |
| - <waitForText selector="{{InputCurrencySymbolSection.productSymbol}}" userInput="$" stepKey="waitForCurrencySymbolInStoreFront"/> |
| 50 | + <waitForText selector="{{AdminCurrencySymbolsGridSection.currencySymbolOfProduct}}" userInput="$" stepKey="waitForCurrencySymbolInStoreFront"/> |
50 | 51 | <!-- Navigate To Currency Symbol-->
|
51 | 52 | <actionGroup ref="AdminNavigateToCurrencySymbolsPageActionGroup" stepKey="navigateToCurrencySymbolsPage"/>
|
52 | 53 | <!--Replace standard currency symbol by custom currency symbol-->
|
53 |
| - <uncheckOption selector="{{InputCurrencySymbolSection.checkValue}}" stepKey="uncheckConfigSettingsMessage"/> |
54 |
| - <fillField selector="{{InputCurrencySymbolSection.setCurrency}}" userInput="£" stepKey="fillDefaultLabel"/> |
| 54 | + <uncheckOption selector="{{AdminCurrencySymbolsGridSection.currencyCheckBox}}" stepKey="uncheckConfigSettingsMessage"/> |
| 55 | + <fillField selector="{{AdminCurrencySymbolsGridSection.inputCurrencySymbol}}" userInput="£" stepKey="fillDefaultLabel"/> |
55 | 56 | <!--Save custom currency symbol-->
|
56 |
| - <waitForElementClickable selector="{{InputCurrencySymbolSection.saveCurrencySymbol}}" stepKey="waitForSaveCurrencySymbol"/> |
57 |
| - <click selector="{{InputCurrencySymbolSection.saveCurrencySymbol}}" stepKey="clickSaveCurrencySymbols"/> |
58 |
| - <waitForPageLoad stepKey="waitForSave"/> |
| 57 | + <waitForElementClickable selector="{{AdminCurrencySymbolsGridSection.saveCurrencySymbols}}" stepKey="waitForSaveCurrencySymbol"/> |
| 58 | + <click selector="{{AdminCurrencySymbolsGridSection.saveCurrencySymbols}}" stepKey="clickSaveCurrencySymbols"/> |
59 | 59 | <waitForText selector="{{AdminMessagesSection.success}}" userInput="{{AdminSaveCurrencySymbolMessageData.success}}" stepKey="seeSuccessMessage"/>
|
| 60 | + <waitForText selector="{{AdminMessagesSection.assertFlushCacheWarningMessage}}" userInput="One or more of the Cache Types are invalidated: Configuration, Page Cache, Blocks HTML output, Layouts." stepKey="assertFlushCacheWarningMessageAppearAfterChangingConfig"/> |
60 | 61 | <!--Navigate To Product Storefront-->
|
61 | 62 | <actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToProductStorefront1">
|
62 | 63 | <argument name="page" value="$$createProduct.name$$.html"/>
|
63 | 64 | </actionGroup>
|
64 | 65 | <!--Assert Currency symbol is not changed-->
|
65 |
| - <waitForText selector="{{InputCurrencySymbolSection.productSymbol}}" userInput="$" stepKey="waitForCurrencySymbol"/> |
| 66 | + <waitForText selector="{{AdminCurrencySymbolsGridSection.currencySymbolOfProduct}}" userInput="$" stepKey="verifyCurrencySymbolIsNotChangedBeforeFlushingTheChangesInStoreFront"/> |
66 | 67 | <!--Navigate to Cache Management-->
|
67 | 68 | <actionGroup ref="AdminGoToCacheManagementPageActionGroup" stepKey="goToCacheManagementPage1"/>
|
68 |
| - <!-- Reindex and Flush Cache--> |
69 |
| - <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCachesAfterModulesDisabled1"> |
| 69 | + <!-- Flush Cache--> |
| 70 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCachesAfterChangesMade"> |
70 | 71 | <argument name="tags" value="" />
|
71 | 72 | </actionGroup>
|
72 | 73 | <!--Navigate To Product Storefront-->
|
73 | 74 | <actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToProductStorefront2">
|
74 | 75 | <argument name="page" value="$$createProduct.name$$.html"/>
|
75 | 76 | </actionGroup>
|
76 |
| - <waitForText selector="{{InputCurrencySymbolSection.productSymbol}}" userInput="£" stepKey="waitForCurrencySymbol1"/> |
| 77 | + <waitForText selector="{{AdminCurrencySymbolsGridSection.currencySymbolOfProduct}}" userInput="£" stepKey="verifyCurrencySymbolIsChangedAfterFlushingTheChangesInStoreFront"/> |
77 | 78 | </test>
|
78 | 79 | </tests>
|
0 commit comments