Skip to content

Commit 6ba2a03

Browse files
committed
#702: Automate MC-3317, MC-15481, MC-15482
- Fixing MFTF tests
1 parent 2a33f03 commit 6ba2a03

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Data/CmsPageData.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,4 @@
6868
</div>
6969
</data>
7070
</entity>
71-
<entity name="_cmsPageTestPageBuilderPageLayout" type="cms_page">
72-
<data key="title">Test Page Builder Page Layout</data>
73-
<data key="identifier">test-page-builder-page-layout</data>
74-
</entity>
7571
</entities>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminCatalogProductPageBuilderTest/PageBuilderCatalogProductVerifyProductFullWidthLayoutTest.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@
268268
<waitForElementVisible selector="{{StorefrontProductFullWidth.attributes}}" stepKey="waitForCustomAttribute"/>
269269
<see userInput="{{PageBuilderHeadingText_CustomAttribute.value}}" selector="{{StorefrontProductFullWidth.attributes}}" stepKey="seeHeadingCustomAttribute"/>
270270
<waitForElementVisible selector="{{StorefrontProductFullWidth.reviews}}" stepKey="waitForReviews"/>
271-
<waitForElementVisible selector="{{StorefrontProductFullWidth.relatedProducts}}" stepKey="waitForRelatedProducts"/>
272-
<waitForElementVisible selector="{{StorefrontProductFullWidth.upsellProducts}}" stepKey="waitForUpSellProducts"/>
271+
<waitForElementVisible selector="{{StorefrontProductFullWidth.related}}" stepKey="waitForRelatedProducts"/>
272+
<waitForElementVisible selector="{{StorefrontProductFullWidth.upsell}}" stepKey="waitForUpSellProducts"/>
273273

274274
<!-- Storefront 1600px: Assert Sections on Page are in Correct Order: Left/Right -->
275275
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.media}}')[0].getBoundingClientRect().x" stepKey="productMediaXPosition"/>
@@ -282,8 +282,8 @@
282282
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.description}}')[0].getBoundingClientRect().x" stepKey="descriptionXPosition"/>
283283
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.attributes}}')[0].getBoundingClientRect().x" stepKey="customAttributeXPosition"/>
284284
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.reviews}}')[0].getBoundingClientRect().x" stepKey="reviewsXPosition"/>
285-
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.relatedProducts}}')[0].getBoundingClientRect().x" stepKey="relatedXPosition"/>
286-
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsellProducts}}')[0].getBoundingClientRect().x" stepKey="upsellXPosition"/>
285+
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.related}}')[0].getBoundingClientRect().x" stepKey="relatedXPosition"/>
286+
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsell}}')[0].getBoundingClientRect().x" stepKey="upsellXPosition"/>
287287
<assertGreaterThan stepKey="assertImageLeftOfTitle">
288288
<expectedResult type="variable">productMediaXPosition</expectedResult>
289289
<actualResult type="variable">productTitleXPosition</actualResult>
@@ -340,8 +340,8 @@
340340
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.description}}')[0].getBoundingClientRect().y" stepKey="descriptionYPosition"/>
341341
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.attributes}}')[0].getBoundingClientRect().y" stepKey="customAttributeYPosition"/>
342342
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.reviews}}')[0].getBoundingClientRect().y" stepKey="reviewsYPosition"/>
343-
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.relatedProducts}}')[0].getBoundingClientRect().y" stepKey="relatedYPosition"/>
344-
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsellProducts}}')[0].getBoundingClientRect().y" stepKey="upsellYPosition"/>
343+
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.related}}')[0].getBoundingClientRect().y" stepKey="relatedYPosition"/>
344+
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsell}}')[0].getBoundingClientRect().y" stepKey="upsellYPosition"/>
345345
<assertGreaterThan stepKey="assertDescriptionBelowImage">
346346
<expectedResult type="variable">productMediaYPosition</expectedResult>
347347
<actualResult type="variable">descriptionYPosition</actualResult>
@@ -436,8 +436,8 @@
436436
<waitForElementVisible selector="{{StorefrontProductFullWidth.attributes}}" stepKey="waitForCustomAttribute2"/>
437437
<see userInput="{{PageBuilderHeadingText_CustomAttribute.value}}" selector="{{StorefrontProductFullWidth.attributes}}" stepKey="seeHeadingCustomAttribute2"/>
438438
<waitForElementVisible selector="{{StorefrontProductFullWidth.reviews}}" stepKey="waitForReviews2"/>
439-
<waitForElementVisible selector="{{StorefrontProductFullWidth.relatedProducts}}" stepKey="waitForRelatedProducts2"/>
440-
<waitForElementVisible selector="{{StorefrontProductFullWidth.upsellProducts}}" stepKey="waitForUpSellProducts2"/>
439+
<waitForElementVisible selector="{{StorefrontProductFullWidth.related}}" stepKey="waitForRelatedProducts2"/>
440+
<waitForElementVisible selector="{{StorefrontProductFullWidth.upsell}}" stepKey="waitForUpSellProducts2"/>
441441

442442
<!-- Storefront 767px Width: Assert Sections on Page are in Correct Order: Left/Right -->
443443
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.media}}')[0].getBoundingClientRect().x" stepKey="productMediaXPosition2"/>
@@ -450,8 +450,8 @@
450450
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.description}}')[0].getBoundingClientRect().x" stepKey="descriptionXPosition2"/>
451451
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.attributes}}')[0].getBoundingClientRect().x" stepKey="customAttributeXPosition2"/>
452452
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.reviews}}')[0].getBoundingClientRect().x" stepKey="reviewsXPosition2"/>
453-
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.relatedProducts}}')[0].getBoundingClientRect().x" stepKey="relatedXPosition2"/>
454-
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsellProducts}}')[0].getBoundingClientRect().x" stepKey="upsellXPosition2"/>
453+
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.related}}')[0].getBoundingClientRect().x" stepKey="relatedXPosition2"/>
454+
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsell}}')[0].getBoundingClientRect().x" stepKey="upsellXPosition2"/>
455455
<assertEquals stepKey="assertImageXSameAsTitle2">
456456
<expectedResult type="variable">productMediaXPosition2</expectedResult>
457457
<actualResult type="variable">productTitleXPosition2</actualResult>
@@ -508,8 +508,8 @@
508508
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.description}}')[0].getBoundingClientRect().y" stepKey="descriptionYPosition2"/>
509509
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.attributes}}')[0].getBoundingClientRect().y" stepKey="customAttributeYPosition2"/>
510510
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.reviews}}')[0].getBoundingClientRect().y" stepKey="reviewsYPosition2"/>
511-
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.relatedProducts}}')[0].getBoundingClientRect().y" stepKey="relatedYPosition2"/>
512-
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsellProducts}}')[0].getBoundingClientRect().y" stepKey="upsellYPosition2"/>
511+
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.related}}')[0].getBoundingClientRect().y" stepKey="relatedYPosition2"/>
512+
<executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsell}}')[0].getBoundingClientRect().y" stepKey="upsellYPosition2"/>
513513
<assertGreaterThan stepKey="assertTitleBelowProductImage2">
514514
<expectedResult type="variable">productMediaYPosition2</expectedResult>
515515
<actualResult type="variable">productTitleYPosition2</actualResult>

0 commit comments

Comments
 (0)