|
41 | 41 | <click selector="{{PageBuilderCatalog.openPageBuilder}}" stepKey="clickOnPageBuilderBtn" />
|
42 | 42 | <waitForPageLoad stepKey="waitForPageLoadPageBuilder"/>
|
43 | 43 | <waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible" />
|
44 |
| - <seeElement selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" /> |
| 44 | + <waitForElementVisible selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" /> |
45 | 45 | <!-- Set background color of row -->
|
46 | 46 | <comment userInput="Set background color of row" stepKey="commentSetRowBackgroundColor"/>
|
47 | 47 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
|
84 | 84 | <description value="Create product with unsupported Page Builder full width layout"/>
|
85 | 85 | <severity value="MAJOR"/>
|
86 | 86 | <useCaseId value="MC-936"/>
|
87 |
| - <testCaseId value="MC-309"/> |
| 87 | + <testCaseId value="MC-3172"/> |
88 | 88 | <group value="pagebuilder"/>
|
89 | 89 | <group value="pagebuilder-fullwidth"/>
|
90 | 90 | </annotations>
|
|
97 | 97 | </actionGroup>
|
98 | 98 | </before>
|
99 | 99 | <after>
|
| 100 | + <closeTab stepKey="closeTab"/> |
100 | 101 | <actionGroup ref="logout" stepKey="logout"/>
|
101 | 102 | <deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/>
|
102 | 103 | </after>
|
|
109 | 110 | <click selector="{{PageBuilderCatalog.openPageBuilder}}" stepKey="clickOnPageBuilderBtn" />
|
110 | 111 | <waitForPageLoad stepKey="waitForPageLoadPageBuilder"/>
|
111 | 112 | <waitForElementVisible selector="{{PageBuilderPanel.generalGroup}}" stepKey="waiForPageBuilderVisible" />
|
112 |
| - <seeElement selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" /> |
| 113 | + <waitForElementVisible selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" /> |
113 | 114 | <!-- Set background color of row -->
|
114 | 115 | <comment userInput="Set background color of row" stepKey="commentSetRowBackgroundColor"/>
|
115 | 116 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
|
119 | 120 | <argument name="property" value="PageBuilderBackgroundColor_HSV_Orange"/>
|
120 | 121 | </actionGroup>
|
121 | 122 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/>
|
| 123 | + <!-- Add heading to stage --> |
| 124 | + <comment userInput="Add heading to stage" stepKey="commentAddHeadingToStage"/> |
122 | 125 | <actionGroup ref="dragContentTypeToStage" stepKey="dragHeadingOntoStage">
|
123 | 126 | <argument name="contentType" value="PageBuilderHeadingContentType"/>
|
124 | 127 | </actionGroup>
|
125 |
| - <!-- Add heading to stage --> |
126 |
| - <comment userInput="Add heading to stage" stepKey="commentAddHeadingToStage"/> |
127 | 128 | <actionGroup ref="enterHeadingOnStage" stepKey="enterHeadingOnStage">
|
128 | 129 | <argument name="headingText" value="PageBuilderHeadingTextProperty"/>
|
129 | 130 | </actionGroup>
|
|
138 | 139 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
|
139 | 140 | <waitForPageLoad stepKey="waitForPageLoadSaveProduct"/>
|
140 | 141 | <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess"/>
|
141 |
| - <!-- Check that content is displayed on storefront --> |
142 |
| - <comment userInput="Check that content is displayed on storefront" stepKey="commentSeeContent"/> |
| 142 | + <!-- Check that content is displayed on storefront with category full width layout --> |
| 143 | + <comment userInput="Check that content is displayed on storefront with category full width layout" stepKey="commentSeeContent"/> |
| 144 | + <openNewTab stepKey="openNewTab"/> |
143 | 145 | <amOnPage url="{{_defaultProduct.urlKey}}.html" stepKey="navigateToProductPage"/>
|
144 | 146 | <waitForPageLoad stepKey="waitForPageLoadProductPage"/>
|
145 | 147 | <waitForElementVisible selector="{{HeadingOnStorefront.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextProperty.value, '1')}}" stepKey="waitForStorefrontHeadingText"/>
|
146 |
| - <seeElement selector="{{HeadingOnStorefront.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextProperty.value, '1')}}" stepKey="seeStorefrontHeadingText"/> |
147 |
| - <!-- Edit product in admin panel --> |
148 |
| - <comment userInput="Edit product in admin panel" stepKey="commentEditProduct"/> |
149 |
| - <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForProduct"> |
150 |
| - <argument name="product" value="$$createSimpleProduct$$"/> |
151 |
| - </actionGroup> |
152 |
| - <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct"> |
153 |
| - <argument name="product" value="_defaultProduct"/> |
154 |
| - </actionGroup> |
155 | 148 | <!-- Set Layout to Page - Full Width -->
|
156 | 149 | <comment userInput="Set Layout to Page - Full Width" stepKey="commentSetLayout2"/>
|
| 150 | + <switchToNextTab stepKey="switchToNextTab"/> |
157 | 151 | <actionGroup ref="setLayout" stepKey="setPageFullWidthLayout">
|
158 | 152 | <argument name="designSection" value="ProductDesignSection"/>
|
159 | 153 | <argument name="layoutOption" value="PageBuilderFullWidthLayout.cms"/>
|
160 | 154 | </actionGroup>
|
161 | 155 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct2"/>
|
162 | 156 | <waitForPageLoad stepKey="waitForPageLoadSaveProduct2"/>
|
163 | 157 | <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess2"/>
|
164 |
| - <!-- Check that content is displayed on storefront --> |
| 158 | + <!-- Check that content is displayed on storefront with Page full width layout --> |
165 | 159 | <comment userInput="Check that content is displayed on storefront" stepKey="commentSeeContent2"/>
|
166 |
| - <amOnPage url="{{_defaultProduct.urlKey}}.html" stepKey="navigateToProductPage2"/> |
167 |
| - <waitForPageLoad stepKey="waitForPageLoadProductPage2"/> |
| 160 | + <switchToNextTab stepKey="switchToNextTab1"/> |
| 161 | + <reloadPage stepKey="reloadPage"/> |
| 162 | + <waitForPageLoad stepKey="waitForPageReload"/> |
168 | 163 | <waitForElementVisible selector="{{HeadingOnStorefront.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextProperty.value, '1')}}" stepKey="waitForStorefrontHeadingText2"/>
|
169 |
| - <seeElement selector="{{HeadingOnStorefront.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextProperty.value, '1')}}" stepKey="seeStorefrontHeadingText2"/> |
170 | 164 | </test>
|
171 | 165 | </tests>
|
0 commit comments