|
6 | 6 | */
|
7 | 7 | -->
|
8 | 8 | <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
|
9 |
| - <actionGroup name="ValidateBackgroundConfigurationWithNoImageActionGroup"> |
| 9 | + <actionGroup name="ValidateBackgroundConfigurationWithNoImageActionGroup" extends="ValidateAllBackgroundAttributesActionGroup"> |
10 | 10 | <annotations>
|
11 | 11 | <description>Validate background configuration (excl. images)</description>
|
12 | 12 | </annotations>
|
13 | 13 | <arguments>
|
14 |
| - <argument name="section"/> |
15 |
| - <argument name="backgroundColor"/> |
16 |
| - <argument name="backgroundPosition" defaultValue="PageBuilderBackgroundPosition_Default"/> |
17 |
| - <argument name="backgroundSize" defaultValue="PageBuilderBackgroundSize_Default"/> |
18 |
| - <argument name="backgroundRepeat" defaultValue="PageBuilderBackgroundRepeat_Default"/> |
19 |
| - <argument name="backgroundAttachment" defaultValue="PageBuilderBackgroundAttachment_Default"/> |
20 |
| - <argument name="index" defaultValue="1" type="string"/> |
| 14 | + <argument name="backgroundColor"/> |
| 15 | + <argument name="backgroundImage" defaultValue=""/> |
21 | 16 | </arguments>
|
22 |
| - <comment userInput="ValidateBackgroundConfigurationWithNoImageActionGroup" stepKey="comment"/> |
23 |
| - <waitForElementVisible selector="{{section.base(index)}}" stepKey="waitForBaseElement"/> |
24 |
| - <executeJS function="return window.getComputedStyle(document.evaluate('{{section.backgroundPath(index)}}', document.body).iterateNext()).backgroundColor" stepKey="grabBackgroundColorValue"/> |
25 |
| - <assertEquals stepKey="assertBackgroundColor"> |
26 |
| - <expectedResult type="string">{{backgroundColor.rgb}}</expectedResult> |
27 |
| - <actualResult type="variable">grabBackgroundColorValue</actualResult> |
28 |
| - </assertEquals> |
29 |
| - <executeJS function="return window.getComputedStyle(document.evaluate('{{section.backgroundPath(index)}}', document.body).iterateNext()).backgroundPosition" stepKey="grabBackgroundPositionValue"/> |
30 |
| - <assertEquals stepKey="assertBackgroundPosition"> |
31 |
| - <expectedResult type="string">{{backgroundPosition.computedStyleValue}}</expectedResult> |
32 |
| - <actualResult type="variable">grabBackgroundPositionValue</actualResult> |
33 |
| - </assertEquals> |
34 |
| - <executeJS function="return window.getComputedStyle(document.evaluate('{{section.backgroundPath(index)}}', document.body).iterateNext()).backgroundSize" stepKey="grabBackgroundSizeValue"/> |
35 |
| - <assertEquals stepKey="assertBackgroundSize"> |
36 |
| - <expectedResult type="string">{{backgroundSize.value}}</expectedResult> |
37 |
| - <actualResult type="variable">grabBackgroundSizeValue</actualResult> |
38 |
| - </assertEquals> |
39 |
| - <executeJS function="return window.getComputedStyle(document.evaluate('{{section.backgroundPath(index)}}', document.body).iterateNext()).backgroundRepeat" stepKey="grabBackgroundRepeatValue"/> |
40 |
| - <assertEquals stepKey="assertBackgroundRepeat"> |
41 |
| - <expectedResult type="string">{{backgroundRepeat.value}}</expectedResult> |
42 |
| - <actualResult type="variable">grabBackgroundRepeatValue</actualResult> |
43 |
| - </assertEquals> |
44 |
| - <executeJS function="return window.getComputedStyle(document.evaluate('{{section.backgroundPath(index)}}', document.body).iterateNext()).backgroundAttachment" stepKey="grabBackgroundAttachmentValue"/> |
45 |
| - <assertEquals stepKey="assertBackgroundAttachment"> |
46 |
| - <expectedResult type="string">{{backgroundAttachment.value}}</expectedResult> |
47 |
| - <actualResult type="variable">grabBackgroundAttachmentValue</actualResult> |
48 |
| - </assertEquals> |
| 17 | + <remove keyForRemoval="comment"/> |
| 18 | + <comment userInput="ValidateBackgroundConfigurationWithNoImageActionGroup" stepKey="comment" before="waitForBaseElement"/> |
| 19 | + <remove keyForRemoval="backgroundImageRawValue"/> |
| 20 | + <remove keyForRemoval="backgroundImageValue"/> |
| 21 | + <remove keyForRemoval="regexFilePath"/> |
| 22 | + <remove keyForRemoval="actualImageResult"/> |
| 23 | + <remove keyForRemoval="assertBackgroundImageContainsFileInformation"/> |
49 | 24 | </actionGroup>
|
50 | 25 | </actionGroups>
|
0 commit comments