|
52 | 52 | </actionGroup>
|
53 | 53 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditFormForRow"/>
|
54 | 54 | <!-- Validate Stage -->
|
55 |
| - <seeElement selector="{{RowOnStage.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRowStage"/> |
| 55 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRowStage"> |
| 56 | + <argument name="selector" value="{{RowOnStage.backgroundPath('1')}}"/> |
| 57 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 58 | + <argument name="cssProperty" value="backgroundColor"/> |
| 59 | + </actionGroup> |
56 | 60 | <!-- Save Product -->
|
57 | 61 | <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
|
58 | 62 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
|
59 | 63 | <actionGroup ref="ExpandAdminProductSectionActionGroup" stepKey="expandAdminProductSection"/>
|
60 | 64 | <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForDescription"/>
|
61 | 65 | <!-- Validate Stage After Save Desktop Viewport -->
|
62 |
| - <seeElement selector="{{RowOnStage.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRowStageAfterSave"/> |
| 66 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRowStageAfterSave"> |
| 67 | + <argument name="selector" value="{{RowOnStage.backgroundPath('1')}}"/> |
| 68 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 69 | + <argument name="cssProperty" value="backgroundColor"/> |
| 70 | + </actionGroup> |
63 | 71 | <!-- Validate Edit Panel After Save -->
|
64 | 72 | <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuForRowAfterSave">
|
65 | 73 | <argument name="contentType" value="PageBuilderRowContentType"/>
|
|
73 | 81 | <argument name="viewportButton" value="mobile"/>
|
74 | 82 | <argument name="viewportStage" value="mobile"/>
|
75 | 83 | </actionGroup>
|
76 |
| - <seeElement selector="{{RowOnStage.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRowStageAfterSave2"/> |
| 84 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRowStageAfterSave2"> |
| 85 | + <argument name="selector" value="{{RowOnStage.backgroundPath('1')}}"/> |
| 86 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 87 | + <argument name="cssProperty" value="backgroundColor"/> |
| 88 | + </actionGroup> |
77 | 89 | <!-- Validate Edit Panel After Save -->
|
78 | 90 | <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuForRowAfterSave2">
|
79 | 91 | <argument name="contentType" value="PageBuilderRowContentType"/>
|
|
86 | 98 | <actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToProductStorefront">
|
87 | 99 | <argument name="page" value="$$createProduct.name$$.html"/>
|
88 | 100 | </actionGroup>
|
89 |
| - <!-- Validate Storefront Desktop --> |
90 | 101 | <scrollTo selector="{{StorefrontProductInfoMainSection.productDescription}}" stepKey="scrollToProductDescription"/>
|
91 |
| - <seeElement selector="{{RowOnStorefront.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRowStorefront"/> |
| 102 | + <!-- Validate Storefront Desktop --> |
| 103 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRowStorefront"> |
| 104 | + <argument name="selector" value="{{RowOnStorefront.backgroundPath('1')}}"/> |
| 105 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 106 | + <argument name="cssProperty" value="backgroundColor"/> |
| 107 | + </actionGroup> |
92 | 108 | <!-- Validate Storefront Mobile -->
|
93 | 109 | <resizeWindow width="767" height="1000" stepKey="resizeWindowToMobile"/>
|
94 |
| - <scrollTo selector="{{StorefrontProductInfoMainSection.productDescription}}" stepKey="scrollToProductDescription2"/> |
95 |
| - <seeElement selector="{{RowOnStorefront.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRowStorefront2"/> |
| 110 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRowStorefront2"> |
| 111 | + <argument name="selector" value="{{RowOnStorefront.backgroundPath('1')}}"/> |
| 112 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 113 | + <argument name="cssProperty" value="backgroundColor"/> |
| 114 | + </actionGroup> |
96 | 115 | </test>
|
97 | 116 | </tests>
|
0 commit comments