Skip to content

Commit d3dac79

Browse files
committed
#635: User Access Column Action Panel with 2+ Level Nesting - Mftf changes
1 parent 424420f commit d3dac79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderContainerTest/PageBuilderVerifyContainerAffordanceTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@
213213
</actionGroup>
214214
<dontSeeElementInDOM selector="{{RowOnStage.affordanceCSS}}" stepKey="dontSeeRowAffordanceInDOM"/>
215215
<dontSeeElementInDOM selector="{{ColumnOnBackend.affordanceCSS}}" stepKey="dontSeeColumnAffordanceInDOM"/>
216-
<executeJS function="return window.innerWidth;" stepKey="viewportWidth"/>
216+
<executeJS function="return window.getComputedStyle(document.querySelector('body')).width.replace(&quot;px&quot;, &quot;&quot;)" stepKey="viewportWidth"/>
217217
<waitForElementVisible selector="{{RowOnStorefront.appearanceContainedCSS}}" stepKey="waitForRowContainedVisible"/>
218218
<executeJS function="return parseInt(document.querySelector('{{RowOnStorefront.appearanceFullBleedCSS}} {{RowOnStorefront.appearanceContainedCSS}}').getBoundingClientRect().width, 10)" stepKey="actualRowContainedSize"/>
219-
<executeJS function="return (window.innerWidth - window.getComputedStyle(document.querySelector('{{RowOnStorefront.baseCSS}}')).marginLeft.replace(&quot;px&quot;, &quot;&quot;) - window.getComputedStyle(document.querySelector('{{RowOnStorefront.baseCSS}}')).marginRight.replace(&quot;px&quot;, &quot;&quot;) - window.getComputedStyle(document.querySelector('{{RowOnStorefront.appearanceContainedCSS}}')).marginLeft.replace(&quot;px&quot;, &quot;&quot;) - window.getComputedStyle(document.querySelector('{{RowOnStorefront.appearanceContainedCSS}}')).marginRight.replace(&quot;px&quot;, &quot;&quot;))" stepKey="calculatedRowContainedSize"/>
219+
<executeJS function="return ({$viewportWidth} - window.getComputedStyle(document.querySelector('{{RowOnStorefront.baseCSS}}')).marginLeft.replace(&quot;px&quot;, &quot;&quot;) - window.getComputedStyle(document.querySelector('{{RowOnStorefront.baseCSS}}')).marginRight.replace(&quot;px&quot;, &quot;&quot;) - window.getComputedStyle(document.querySelector('{{RowOnStorefront.appearanceContainedCSS}}')).marginLeft.replace(&quot;px&quot;, &quot;&quot;) - window.getComputedStyle(document.querySelector('{{RowOnStorefront.appearanceContainedCSS}}')).marginRight.replace(&quot;px&quot;, &quot;&quot;))" stepKey="calculatedRowContainedSize"/>
220220
<assertEquals stepKey="assertRowContainedEqualsExpected">
221221
<expectedResult type="variable">calculatedRowContainedSize</expectedResult>
222222
<actualResult type="variable">actualRowContainedSize</actualResult>

0 commit comments

Comments
 (0)