Skip to content

Commit 68b4fea

Browse files
committed
B2B-1703: Add MFTF test for MC-38558
- Fixing broken tests
1 parent c918fcb commit 68b4fea

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<argument name="product" value="SimpleProduct"/>
6969
</actionGroup>
7070
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
71-
<amOnPage url="{{SimpleProduct.name}}.html" stepKey="navigateToProductPageOnStorefront"/>
71+
<amOnPage url="{{SimpleProduct.urlKey}}.html" stepKey="navigateToProductPageOnStorefront"/>
7272
<waitForPageLoad stepKey="waitForPageLoad5"/>
7373
<see userInput="Hello Product Page From PageBuilder" stepKey="pagebuilderContent"/>
7474
</test>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
103103
<waitForPageLoad stepKey="waitForPageLoadSaveProduct"/>
104104
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess"/>
105-
<amOnPage url="{{SimpleProduct.name}}.html" stepKey="navigateToProductPage"/>
105+
<amOnPage url="{{SimpleProduct.urlKey}}.html" stepKey="navigateToProductPage"/>
106106
<waitForPageLoad stepKey="waitForPageLoadProductPage"/>
107107
<!-- Verify custom product attribute has it's own heading -->
108108
<comment userInput="Verify custom product attribute has it's own heading" stepKey="commentValidateAttributeHasHeading"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess"/>
5252
<!-- Verify text field attribute is displayed correctly in table -->
5353
<comment userInput="Verify text field attribute is displayed correctly in table" stepKey="commentVerifyAttributeInTable"/>
54-
<amOnPage url="{{SimpleProduct.name}}.html" stepKey="navigateToProductPage"/>
54+
<amOnPage url="{{SimpleProduct.urlKey}}.html" stepKey="navigateToProductPage"/>
5555
<waitForPageLoad stepKey="waitForPageLoadProductPage"/>
5656
<waitForElementVisible selector="{{PageBuilderProductStorefront.attributeTableValue($$createTextAttribute.default_frontend_label$$, 'Normal Text Attribute Value')}}" stepKey="seeAttributeValueInTable"/>
5757
</test>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<!-- Validate attributes are displayed in the correct order -->
116116
<comment userInput="Validate attributes are displayed in the correct order" stepKey="commentValidateAttributeOrder"/>
117117
<openNewTab stepKey="openNewTab"/>
118-
<amOnPage url="{{SimpleProduct.name}}.html" stepKey="navigateToProductPage"/>
118+
<amOnPage url="{{SimpleProduct.urlKey}}.html" stepKey="navigateToProductPage"/>
119119
<waitForElementVisible selector="{{PageBuilderProductStorefront.attributeSectionHeading('1', $$createPageBuilderAttribute1.default_frontend_label$$)}}" stepKey="validateAttribute1DisplayedFirst"/>
120120
<waitForElementVisible selector="{{PageBuilderProductStorefront.attributeSectionHeading('2', $$createPageBuilderAttribute2.default_frontend_label$$)}}" stepKey="validateAttribute2DisplayedSecond"/>
121121
<!-- Swap the sort order of the attributes -->

0 commit comments

Comments
 (0)