-
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 #5097 from magento-tsg-csl3/2.4-develop-pr1
[TSG-CSL3] For 2.4 (pr1)
- Loading branch information
Showing
43 changed files
with
1,416 additions
and
280 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
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
49 changes: 49 additions & 0 deletions
49
app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateDatetimeProductAttributeTest.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,49 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminCreateDatetimeProductAttributeTest"> | ||
<annotations> | ||
<features value="Catalog"/> | ||
<stories value="Datetime product attributes support"/> | ||
<title value="Datetime product attribute type is supported"/> | ||
<description value="Admin should be able to create datetime product attribute"/> | ||
<severity value="CRITICAL"/> | ||
<testCaseId value="MC-21451"/> | ||
<group value="catalog"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="LoginAsAdmin" stepKey="login"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="deleteProductAttribute" stepKey="deleteAttribute"> | ||
<argument name="ProductAttribute" value="DatetimeProductAttribute"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminGridFilterResetActionGroup" stepKey="resetGridFilter"/> | ||
<actionGroup ref="logout" stepKey="logout"/> | ||
</after> | ||
<!-- Generate the datetime default value --> | ||
<generateDate date="now" format="m/j/y g:i A" stepKey="generateDefaultValue"/> | ||
<!-- Create new datetime product attribute --> | ||
<amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="goToProductAttributes"/> | ||
<waitForPageLoad stepKey="waitForPageLoadAttributes"/> | ||
<actionGroup ref="CreateProductAttributeWithDatetimeField" stepKey="createAttribute"> | ||
<argument name="attribute" value="DatetimeProductAttribute"/> | ||
<argument name="date" value="{$generateDefaultValue}"/> | ||
</actionGroup> | ||
<!-- Navigate to created product attribute --> | ||
<actionGroup ref="navigateToCreatedProductAttribute" stepKey="navigateToAttribute"> | ||
<argument name="ProductAttribute" value="DatetimeProductAttribute"/> | ||
</actionGroup> | ||
<!-- Check the saved datetime default value --> | ||
<actionGroup ref="AdminNavigateToProductAttributeAdvancedSection" stepKey="goToAdvancedSection"/> | ||
<scrollTo selector="{{AdvancedAttributePropertiesSection.defaultValueDatetime}}" stepKey="scrollToDefaultValue"/> | ||
<seeInField userInput="{$generateDefaultValue}" | ||
selector="{{AdvancedAttributePropertiesSection.defaultValueDatetime}}" | ||
stepKey="checkDefaultValue"/> | ||
</test> | ||
</tests> |
Oops, something went wrong.