Skip to content

Commit 3aba3a9

Browse files
Manjusha.SManjusha.S
authored andcommitted
reverted back the file
1 parent 5e828ea commit 3aba3a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/ValidateContentTypesStyleEqualsExpectedStyleActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
<arguments>
1414
<argument name="selector" type="string"/>
1515
<argument name="expectedProperty" type="string"/>
16+
<argument name="cssProperty" defaultValue="backgroundColor" type="string"/>
1617
</arguments>
17-
<grabAttributeFrom userInput="data-overlay-color" selector="{{selector}}" stepKey="fetchedProperty"/>
18+
<executeJS function="return window.getComputedStyle(document.evaluate('{{selector}}', document.body).iterateNext()).{{cssProperty}}.replace(/px/g, &quot;&quot;)" stepKey="fetchedProperty"/>
1819
<assertEquals stepKey="propertyIsEqualsAsExpected">
1920
<expectedResult type="string">{{expectedProperty}}</expectedResult>
2021
<actualResult type="variable">fetchedProperty</actualResult>

0 commit comments

Comments
 (0)