|
56 | 56 | <argument name="contentType" value="PageBuilderRowContentType"/>
|
57 | 57 | </actionGroup>
|
58 | 58 | <seeNumberOfElements selector="{{RowOnStage.allRows}}" userInput="2" stepKey="see2RowsStage"/>
|
59 |
| - <seeElement selector="{{RowOnStage.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow1Stage"/> |
60 |
| - <seeElement selector="{{RowOnStage.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow2Stage"/> |
| 59 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow1Stage"> |
| 60 | + <argument name="selector" value="{{RowOnStage.backgroundPath('1')}}"/> |
| 61 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 62 | + <argument name="cssProperty" value="backgroundColor"/> |
| 63 | + </actionGroup> |
| 64 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow2Stage"> |
| 65 | + <argument name="selector" value="{{RowOnStage.backgroundPath('2')}}"/> |
| 66 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 67 | + <argument name="cssProperty" value="backgroundColor"/> |
| 68 | + </actionGroup> |
61 | 69 | <!-- Validate Edit Panel For Duplicate -->
|
62 | 70 | <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuForRow2">
|
63 | 71 | <argument name="contentType" value="PageBuilderRowContentType"/>
|
|
74 | 82 | <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForDescription"/>
|
75 | 83 | <!-- Validate Stage After Save Desktop Viewport -->
|
76 | 84 | <seeNumberOfElements selector="{{RowOnStage.allRows}}" userInput="2" stepKey="see2RowsStageAfterSave"/>
|
77 |
| - <seeElement selector="{{RowOnStage.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow1StageAfterSave"/> |
78 |
| - <seeElement selector="{{RowOnStage.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow2StageAfterSave"/> |
| 85 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow1Stage2"> |
| 86 | + <argument name="selector" value="{{RowOnStage.backgroundPath('1')}}"/> |
| 87 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 88 | + <argument name="cssProperty" value="backgroundColor"/> |
| 89 | + </actionGroup> |
| 90 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow2Stage2"> |
| 91 | + <argument name="selector" value="{{RowOnStage.backgroundPath('2')}}"/> |
| 92 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 93 | + <argument name="cssProperty" value="backgroundColor"/> |
| 94 | + </actionGroup> |
79 | 95 | <!-- Validate Stage After Save Mobile Viewport -->
|
80 | 96 | <actionGroup ref="AdminSwitchPageBuilderViewportActionGroup" stepKey="switchToMobileViewportAfterSave">
|
81 | 97 | <argument name="viewportButton" value="mobile"/>
|
82 | 98 | <argument name="viewportStage" value="mobile"/>
|
83 | 99 | </actionGroup>
|
84 | 100 | <seeNumberOfElements selector="{{RowOnStage.allRows}}" userInput="2" stepKey="see2RowsStageAfterSave2"/>
|
85 |
| - <seeElement selector="{{RowOnStage.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow1StageAfterSave2"/> |
86 |
| - <seeElement selector="{{RowOnStage.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow2StageAfterSave2"/> |
| 101 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow1Stage3"> |
| 102 | + <argument name="selector" value="{{RowOnStage.backgroundPath('1')}}"/> |
| 103 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 104 | + <argument name="cssProperty" value="backgroundColor"/> |
| 105 | + </actionGroup> |
| 106 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow2Stage3"> |
| 107 | + <argument name="selector" value="{{RowOnStage.backgroundPath('2')}}"/> |
| 108 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 109 | + <argument name="cssProperty" value="backgroundColor"/> |
| 110 | + </actionGroup> |
87 | 111 | <!-- Navigate To Storefront -->
|
88 | 112 | <actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToProductStorefront">
|
89 | 113 | <argument name="page" value="$$createProduct.name$$.html"/>
|
90 | 114 | </actionGroup>
|
91 |
| - <!-- Validate Storefront Desktop --> |
92 | 115 | <scrollTo selector="{{StorefrontProductInfoMainSection.productDescription}}" stepKey="scrollToProductDescription"/>
|
| 116 | + <!-- Validate Storefront Desktop --> |
93 | 117 | <seeNumberOfElements selector="{{RowOnStorefront.allRows}}" userInput="2" stepKey="see2RowsStorefront"/>
|
94 |
| - <seeElement selector="{{RowOnStorefront.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow1Storefront"/> |
95 |
| - <seeElement selector="{{RowOnStorefront.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow2Storefront"/> |
| 118 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow1Storefront"> |
| 119 | + <argument name="selector" value="{{RowOnStorefront.backgroundPath('1')}}"/> |
| 120 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 121 | + <argument name="cssProperty" value="backgroundColor"/> |
| 122 | + </actionGroup> |
| 123 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow2Storefront"> |
| 124 | + <argument name="selector" value="{{RowOnStorefront.backgroundPath('2')}}"/> |
| 125 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 126 | + <argument name="cssProperty" value="backgroundColor"/> |
| 127 | + </actionGroup> |
96 | 128 | <!-- Validate Storefront Mobile -->
|
97 | 129 | <resizeWindow width="767" height="1000" stepKey="resizeWindowToMobile"/>
|
98 |
| - <scrollTo selector="{{StorefrontProductInfoMainSection.productDescription}}" stepKey="scrollToProductDescription2"/> |
99 | 130 | <seeNumberOfElements selector="{{RowOnStorefront.allRows}}" userInput="2" stepKey="see2RowsStorefront2"/>
|
100 |
| - <seeElement selector="{{RowOnStorefront.backgroundColor('1', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow1Storefront2"/> |
101 |
| - <seeElement selector="{{RowOnStorefront.backgroundColor('2', PageBuilderBackgroundColor_Hex_Grey.rgb)}}" stepKey="seeBackgroundColorRow2Storefront2"/> |
102 |
| - </test> |
| 131 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow1Storefront2"> |
| 132 | + <argument name="selector" value="{{RowOnStorefront.backgroundPath('1')}}"/> |
| 133 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 134 | + <argument name="cssProperty" value="backgroundColor"/> |
| 135 | + </actionGroup> |
| 136 | + <actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeBackgroundColorRow2Storefront2"> |
| 137 | + <argument name="selector" value="{{RowOnStorefront.backgroundPath('2')}}"/> |
| 138 | + <argument name="expectedProperty" value="{{PageBuilderBackgroundColor_Hex_Grey.rgb}}"/> |
| 139 | + <argument name="cssProperty" value="backgroundColor"/> |
| 140 | + </actionGroup></test> |
103 | 141 | </tests>
|
0 commit comments