|
13 | 13 | <stories value="Banner"/>
|
14 | 14 | <title value="Upload Image to Banner with Secret Key Enabled"/>
|
15 | 15 | <description value="Verify that user are able to upload image to Banner when Secret URL Key is enabled."/>
|
16 |
| - <severity value="AVERAGE"/> |
| 16 | + <severity value="CRITICAL"/> |
17 | 17 | <useCaseId value=""/>
|
18 | 18 | <testCaseId value="MC-4990"/>
|
19 | 19 | <group value="pagebuilder"/>
|
20 | 20 | <group value="pagebuilder-banner"/>
|
21 | 21 | <group value="pagebuilder-bannerCommon"/>
|
22 | 22 | </annotations>
|
23 | 23 | <before>
|
24 |
| - <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
25 | 24 | <createData entity="_emptyCmsPage" stepKey="createCMSPage"/>
|
| 25 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 26 | + <magentoCLI command="config:set admin/security/use_form_key 0" stepKey="disableUrlSecretKeys1"/> |
| 27 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches1"> |
| 28 | + <argument name="tags" value="config full_page"/> |
| 29 | + </actionGroup> |
| 30 | + <reloadPage stepKey="reloadPage1"/> |
26 | 31 | <actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToContentCreatedCMSPage1">
|
27 | 32 | <argument name="CMSPage" value="$$createCMSPage$$"/>
|
28 | 33 | </actionGroup>
|
|
38 | 43 | </actionGroup>
|
39 | 44 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
40 | 45 | </after>
|
41 |
| - <grabFromCurrentUrl stepKey="cmsId" regex="#\/([0-9]*)?\/$#"/> |
| 46 | + |
42 | 47 | <!-- Add Banner -->
|
43 | 48 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
44 | 49 | <actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer">
|
|
52 | 57 | <argument name="contentType" value="PageBuilderBannerContentType"/>
|
53 | 58 | </actionGroup>
|
54 | 59 |
|
55 |
| - <actionGroup ref="unFocusOptionMenu" stepKey="unFocusOptionMenu"> |
56 |
| - <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 60 | + <!-- Save CMS Page --> |
| 61 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
| 62 | + <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
| 63 | + |
| 64 | + <!-- Enable Secret Key --> |
| 65 | + <magentoCLI command="config:set admin/security/use_form_key 1" stepKey="enableUrlSecretKeys"/> |
| 66 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches"> |
| 67 | + <argument name="tags" value="config full_page"/> |
57 | 68 | </actionGroup>
|
| 69 | + <reloadPage stepKey="reloadPage"/> |
| 70 | + |
| 71 | + <!-- Upload Image to Banner and Verify --> |
| 72 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
58 | 73 | <actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons">
|
59 | 74 | <argument name="contentType" value="PageBuilderBannerContentType"/>
|
60 | 75 | </actionGroup>
|
61 | 76 | <attachFile selector="{{PageBuilderStage.uploadImageInput('1')}}" userInput="{{PageBuilderImageProperty_JPG.value}}" stepKey="attachImageFromLocalToStage"/>
|
62 | 77 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
63 |
| - <actionGroup ref="ValidateBackgroundImageConfigurationActionGroup" stepKey="validateBackgroundImageStage"> |
64 |
| - <argument name="section" value="BannerOnBackend"/> |
65 |
| - <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/> |
66 |
| - </actionGroup> |
67 |
| - <!-- Save CMS Page --> |
68 |
| - <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
69 |
| - <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
70 | 78 |
|
71 |
| - <!-- Enable Secret Key --> |
72 |
| - <magentoCLI command="config:set admin/security/use_form_key 1" stepKey="enableUrlSecretKeys"/> |
73 |
| - <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPage"/> |
74 |
| - <actionGroup ref="ValidateBackgroundImageConfigurationActionGroup" stepKey="validateBackgroundImageStage2"> |
75 |
| - <argument name="section" value="BannerOnBackend"/> |
| 79 | + <!-- Save CMS Page Again --> |
| 80 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen2"/> |
| 81 | + <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage2"/> |
| 82 | + |
| 83 | + <!-- Validate Storefront --> |
| 84 | + <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnCmsStorefront"/> |
| 85 | + <waitForPageLoad stepKey="waitForPageLoad1"/> |
| 86 | + <actionGroup ref="validateBackgroundImageContainer" stepKey="validateImageOnStorefront"> |
| 87 | + <argument name="section" value="BannerOnFrontend"/> |
76 | 88 | <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/>
|
77 | 89 | </actionGroup>
|
78 | 90 |
|
|
81 | 93 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches2">
|
82 | 94 | <argument name="tags" value="config full_page"/>
|
83 | 95 | </actionGroup>
|
| 96 | + <reloadPage stepKey="reloadPage2"/> |
84 | 97 |
|
85 | 98 | <!-- Validate Storefront -->
|
86 |
| - <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnCmsStorefront"/> |
87 |
| - <waitForPageLoad stepKey="waitForPageLoad4"/> |
88 |
| - <actionGroup ref="validateBackgroundImageContainer" stepKey="validateImageOnStorefront"> |
| 99 | + <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnCmsStorefront2"/> |
| 100 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 101 | + <actionGroup ref="validateBackgroundImageContainer" stepKey="validateImageOnStorefront2"> |
89 | 102 | <argument name="section" value="BannerOnFrontend"/>
|
90 | 103 | <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/>
|
91 | 104 | </actionGroup>
|
|
0 commit comments