File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
app/code/Magento/PageBuilder/Test/Mftf/Test Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 31
31
<amOnPage url =" admin/admin/auth/logout/" stepKey =" amOnLogoutPage" />
32
32
</after >
33
33
<amOnPage url =" {{AdminCategoryPage.url}}" stepKey =" navigateToCategoryPage" />
34
+ <waitForElementVisible selector =" {{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey =" waitForSubCategoryBtn" />
34
35
<click selector =" {{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey =" clickOnAddSubCategory" />
35
36
<fillField selector =" {{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput =" {{SimpleSubCategory.name}}" stepKey =" enterCategoryName" />
36
37
<click selector =" {{AdminCategorySEOSection.SectionHeader}}" stepKey =" openSEO" />
59
60
<argument name =" headingText" value =" PageBuilderHeadingTextProperty" />
60
61
</actionGroup >
61
62
<click selector =" {{PageBuilderStage.exitFullScreen}}" stepKey =" exitPageBuilderFullScreen" />
63
+ <!-- Use Full Width layout -->
64
+ <comment userInput =" Set Layout to Category - Full Width" stepKey =" commentSetLayout" />
65
+ <click selector =" {{CategoryDesignSection.DesignTab}}" stepKey =" clickOnDesignTab" />
66
+ <waitForElementVisible selector =" {{CategoryDesignSection.LayoutDropdown}}" stepKey =" waitForLayoutDropDown" />
67
+ <selectOption selector =" {{CategoryDesignSection.LayoutDropdown}}" userInput =" {{PageBuilderFullWidthLayout.category}}" stepKey =" selectCategoryFullWidthLayout" />
62
68
<click selector =" {{AdminCategoryMainActionsSection.SaveButton}}" stepKey =" saveCategory" />
63
69
<seeElement selector =" {{AdminCategoryMessagesSection.SuccessMessage}}" stepKey =" assertSuccess" />
64
70
<!-- Literal URL below, need to refactor line + StorefrontCategoryPage when support for variable URL is implemented-->
Original file line number Diff line number Diff line change 31
31
<description value =" Create CMS Page with full page layout" />
32
32
<severity value =" MAJOR" />
33
33
<testCaseId value =" MC-3092" />
34
- <group value =" run " />
34
+ <group value =" pagebuilder " />
35
35
<group value =" pagebuilder-fullwidth" />
36
36
</annotations >
37
37
<before >
60
60
<actionGroup ref =" enterHeadingOnStage" stepKey =" enterHeadingOnStage" >
61
61
<argument name =" headingText" value =" PageBuilderHeadingTextProperty" />
62
62
</actionGroup >
63
+ <!-- Use Full Width layout -->
64
+ <comment userInput =" Set Layout to Page - Full Width" stepKey =" commentSetLayout" />
65
+ <click selector =" {{CmsDesignSection.DesignTab}}" stepKey =" clickOnDesignTab" />
66
+ <waitForElementVisible selector =" {{CmsDesignSection.LayoutDropdown}}" stepKey =" waitForLayoutDropDown" />
67
+ <selectOption selector =" {{CmsDesignSection.LayoutDropdown}}" userInput =" {{PageBuilderFullWidthLayout.cms}}" stepKey =" selectPageFullWidthLayout" />
63
68
<actionGroup ref =" saveAndContinueEditCmsPage" stepKey =" saveAndContinueEditCmsPage" />
64
69
<!-- Check that description is full width on storefront -->
65
70
<comment userInput =" Check that description is full width on storefront" stepKey =" commentSeeDescriptionFullWidth" />
69
74
<executeJS function =" return document.querySelector('[data-role=row]').clientWidth" stepKey =" rowWidth" />
70
75
<executeJS function =" return document.querySelector('[class=page-wrapper]').clientWidth" stepKey =" pageWidth" />
71
76
<assertEquals expected =" pageWidth" expectedType =" variable" actual =" rowWidth" actualType =" variable" stepKey =" assertRowWidth100Percent" />
72
-
73
77
</test >
74
78
</tests >
Original file line number Diff line number Diff line change 55
55
<argument name =" headingText" value =" PageBuilderHeadingTextProperty" />
56
56
</actionGroup >
57
57
<click selector =" {{PageBuilderStage.exitFullScreen}}" stepKey =" exitPageBuilderFullScreen" />
58
+ <!-- Use Full Width layout -->
59
+ <comment userInput =" Set Layout to Product - Full Width" stepKey =" commentSetLayout" />
60
+ <click selector =" {{ProductDesignSection.DesignTab}}" stepKey =" clickOnDesignTab" />
61
+ <waitForElementVisible selector =" {{ProductDesignSection.LayoutDropdown}}" stepKey =" waitForLayoutDropDown" />
62
+ <selectOption selector =" {{ProductDesignSection.LayoutDropdown}}" userInput =" {{PageBuilderFullWidthLayout.product}}" stepKey =" selectProductFullWidthLayout" />
58
63
<click selector =" {{AdminProductFormActionSection.saveButton}}" stepKey =" saveProduct" />
59
64
<seeElement selector =" {{AdminProductMessagesSection.successMessage}}" stepKey =" assertSaveMessageSuccess" />
60
65
<amOnPage url =" {{_defaultProduct.urlKey}}.html" stepKey =" navigateToProductPage" />
You can’t perform that action at this time.
0 commit comments