forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
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 magento#2649 from magento-arcticfoxes/MAGETWO-91434
[arcticfoxes] MAGETWO-91434: Default option for 'Status' attribute not being set
- Loading branch information
Showing
4 changed files
with
164 additions
and
3 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
57 changes: 57 additions & 0 deletions
57
.../Magento/FunctionalTest/Catalog/Test/AdminProductStatusAttributeDisabledByDefaultTest.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,57 @@ | ||
<?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="AdminProductStatusAttributeDisabledByDefaultTest"> | ||
<annotations> | ||
<title value="Verify the default option value for product Status attribute is set correctly during product creation"/> | ||
<description value="The default option value for product Status attribute is set correctly during product creation"/> | ||
<severity value="MAJOR"/> | ||
<testCaseId value="MAGETWO-92424"/> | ||
<group value="Catalog"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
|
||
</before> | ||
<after> | ||
<amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="navigateToProductAttribute"/> | ||
<waitForPageLoad stepKey="wait1"/> | ||
<click selector="{{AdminProductAttributeGridSection.ResetFilter}}" stepKey="resetFiltersOnGrid1"/> | ||
<fillField selector="{{AdminProductAttributeGridSection.GridFilterFrontEndLabel}}" userInput="Enable Product" stepKey="setAttributeLabel1"/> | ||
<click selector="{{AdminProductAttributeGridSection.Search}}" stepKey="searchForAttributeFromTheGrid1"/> | ||
<click selector="{{AdminProductAttributeGridSection.FirstRow}}" stepKey="clickOnAttributeRow1"/> | ||
<waitForPageLoad stepKey="wait2"/> | ||
<click selector="{{AdminNewAttributePanel.isDefault('1')}}" stepKey="resetOptionForStatusAttribute"/> | ||
<click selector="{{AttributePropertiesSection.Save}}" stepKey="saveAttribute1"/> | ||
<waitForPageLoad stepKey="waitForSaveAttribute1"/> | ||
<actionGroup ref="ClearCacheActionGroup" stepKey="clearCache1"/> | ||
|
||
<actionGroup ref="logout" stepKey="logoutOfAdmin"/> | ||
</after> | ||
<amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="navigateToProductAttribute"/> | ||
<waitForPageLoad stepKey="wait1"/> | ||
<click selector="{{AdminProductAttributeGridSection.ResetFilter}}" stepKey="resetFiltersOnGrid"/> | ||
<fillField selector="{{AdminProductAttributeGridSection.GridFilterFrontEndLabel}}" userInput="Enable Product" stepKey="setAttributeLabel"/> | ||
<click selector="{{AdminProductAttributeGridSection.Search}}" stepKey="searchForAttributeFromTheGrid"/> | ||
<click selector="{{AdminProductAttributeGridSection.FirstRow}}" stepKey="clickOnAttributeRow"/> | ||
<waitForPageLoad stepKey="wait2"/> | ||
<click selector="{{AdminNewAttributePanel.isDefault('2')}}" stepKey="chooseDisabledOptionForStatus"/> | ||
<click selector="{{AttributePropertiesSection.Save}}" stepKey="saveAttribute"/> | ||
<waitForPageLoad stepKey="waitForAttributeToSave"/> | ||
<actionGroup ref="ClearCacheActionGroup" stepKey="clearCache"/> | ||
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndex"/> | ||
<waitForPageLoad time="30" stepKey="waitForProductGridPageToLoad"/> | ||
<click selector="{{AdminProductGridActionSection.addProductToggle}}" stepKey="clickOnAddProductDropdown"/> | ||
<click selector="{{AdminProductGridActionSection.addSimpleProduct}}" stepKey="clickOnAddSimpleProduct"/> | ||
<waitForPageLoad stepKey="waitForProductEditToLoad"/> | ||
<dontSeeCheckboxIsChecked selector="{{AdminProductFormSection.productStatus}}" stepKey="dontSeeCheckboxEnableProductIsChecked"/> | ||
|
||
</test> | ||
</tests> |