-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2556 from magento-honey-badgers/MAGETWO-91580-Emp…
…ty-product-attributes-of-dropdown [honey] Bug fixes
- Loading branch information
Showing
11 changed files
with
159 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,4 +132,8 @@ | |
.footer.content { | ||
padding: 0; | ||
} | ||
|
||
.hidden-print { | ||
display: none !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...unctional/Magento/FunctionalTest/Catalog/Test/StorefrontProductWithEmptyAttributeTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> | ||
<test name="StorefrontProductWithEmptyAttributeTest"> | ||
<annotations> | ||
<title value="Product attribute is not visible on storefront if it is empty"/> | ||
<description value="Product attribute should not be visible on storefront if it is empty"/> | ||
<severity value="MAJOR"/> | ||
<testCaseId value="MAGETWO-91893"/> | ||
<group value="product"/> | ||
</annotations> | ||
<before> | ||
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/> | ||
<createData entity="productAttributeWithDropdownTwoOptions" stepKey="createProductAttribute"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="deleteProductUsingProductGrid" stepKey="deleteSimpleProduct"> | ||
<argument name="product" value="SimpleProduct"/> | ||
</actionGroup> | ||
<deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/> | ||
<deleteData createDataKey="createProductAttribute" stepKey="deleteProductAttribute"/> | ||
<actionGroup ref="logout" stepKey="logoutOfAdmin"/> | ||
</after> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/> | ||
<amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="amOnAttributeSetPage"/> | ||
<click selector="{{AdminProductAttributeSetGridSection.AttributeSetName('Default')}}" stepKey="chooseDefaultAttributeSet"/> | ||
<waitForPageLoad stepKey="waitForAttributeSetPageLoad"/> | ||
<dragAndDrop selector1="{{UnassignedAttributes.ProductAttributeName('testattribute')}}" selector2="{{Group.FolderName('Product Details')}}" stepKey="moveProductAttributeToGroup"/> | ||
<click selector="{{AttributeSetSection.Save}}" stepKey="saveAttributeSet"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear" /> | ||
<seeElement selector=".message-success" stepKey="assertSuccess"/> | ||
<actionGroup ref="FillAdminSimpleProductForm" stepKey="fillProductFieldsInAdmin"> | ||
<argument name="category" value="$$createPreReqCategory$$"/> | ||
<argument name="simpleProduct" value="SimpleProduct"/> | ||
</actionGroup> | ||
<actionGroup ref="ClearCacheActionGroup" stepKey="clearCache"/> | ||
<amOnPage url="{{StorefrontProductPage.url(SimpleProduct.urlKey)}}" stepKey="goProductPageOnStorefront"/> | ||
<waitForPageLoad stepKey="waitForProductPageToLoad"/> | ||
<dontSeeElement selector="//table[@id='product-attribute-specs-table']/tbody/tr/th[contains(text(),'testattribute')]" stepKey="seeAttribute2"/> | ||
</test> | ||
</tests> |
14 changes: 14 additions & 0 deletions
14
dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Theme/Page/ThemesPage.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd"> | ||
<page name="ThemesPageIndex" url="admin/system_design_theme/" area="admin" module="Magento_Theme"> | ||
<section name="AdminThemeSection"/> | ||
</page> | ||
</pages> |
21 changes: 21 additions & 0 deletions
21
...ts/acceptance/tests/functional/Magento/FunctionalTest/Theme/Section/AdminThemeSection.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd"> | ||
<section name="AdminThemeSection"> | ||
<!--All rows in a specific Column e.g. {{Section.rowsInColumn('columnName')}}--> | ||
<element name="rowsInColumn" type="text" selector="//tr/td[contains(@class, '{{column}}')]" parameterized="true"/> | ||
<!--selector for Theme Title column since it needs to be handled separately--> | ||
<element name="rowsInThemeTitleColumn" type="text" selector="//tbody/tr/td[contains(@class, 'parent_theme')]/preceding-sibling::td"/> | ||
<element name="rowsInColumn" type="text" selector="//tbody/tr/td[contains(@class, '{{column}}')]" parameterized="true"/> | ||
<!--Specific cell e.g. {{Section.gridCell('Name')}}--> | ||
<element name="gridCell" type="text" selector="//table[@id='theme_grid_table']//td[contains(text(), '{{gridCellText}}')]" parameterized="true"/> | ||
<element name="columnHeader" type="text" selector="//thead/tr/th[contains(@class, 'data-grid-th')]/span[text() = '{{label}}']" parameterized="true" timeout="30"/> | ||
</section> | ||
</sections> |
31 changes: 31 additions & 0 deletions
31
dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Theme/Test/ThemeTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> | ||
<test name="ThemeTest"> | ||
<annotations> | ||
<features value="Theme Test"/> | ||
<title value="Magento Rush theme should not be available in Themes grid"/> | ||
<description value="Magento Rush theme should not be available in Themes grid"/> | ||
<severity value="MAJOR"/> | ||
<testCaseId value="MAGETWO-91409"/> | ||
<group value="theme"/> | ||
</annotations> | ||
<after> | ||
<actionGroup ref="logout" stepKey="logoutOfAdmin"/> | ||
</after> | ||
<!--Login to Admin Area--> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginToAdminArea"/> | ||
<!--Navigate to Themes page--> | ||
<amOnPage url="{{ThemesPageIndex.url}}" stepKey="navigateToThemesIndexPage" /> | ||
<waitForPageLoad stepKey="wait1"/> | ||
<dontSee selector="{{AdminThemeSection.gridCell('Magento Rush')}}" stepKey="dontSeeRushThemeInTitleColumn"/> | ||
<seeNumberOfElements selector="{{AdminThemeSection.rowsInColumn('theme_path')}}" userInput="2" stepKey="see2RowsOnTheGrid"/> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters