Skip to content

Commit c8a815e

Browse files
committed
Merge remote-tracking branch 'origin/MC-32638' into 2.4-develop-pr21
2 parents 6029319 + 7c51854 commit c8a815e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateSimpleProductWithDatetimeAttributeTest.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
</annotations>
2020

2121
<before>
22-
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
22+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
</before>
24+
2425
<after>
2526
<deleteData createDataKey="createDatetimeAttribute" stepKey="deleteDatetimeAttribute"/>
2627
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteCreatedProduct">
@@ -45,13 +46,15 @@
4546
<actionGroup ref="AddProductAttributeInProductModalActionGroup" stepKey="addDatetimeAttribute">
4647
<argument name="attributeCode" value="$createDatetimeAttribute.attribute_code$"/>
4748
</actionGroup>
48-
<!-- Flush config cache to reset product attributes in attribute set -->
49-
<magentoCLI command="cache:flush" arguments="config" stepKey="flushConfigCache"/>
5049
<!-- Save the product -->
5150
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
51+
<!-- Flush config cache to reset product attributes in attribute set -->
52+
<magentoCLI command="cache:flush" arguments="config" stepKey="flushConfigCache"/>
53+
<reloadPage stepKey="reloadProductEditPage"/>
5254
<!-- Check default value -->
53-
<scrollTo selector="{{AdminProductAttributesSection.sectionHeader}}" stepKey="goToAttributesSection"/>
54-
<click selector="{{AdminProductAttributesSection.sectionHeader}}" stepKey="openAttributesSection"/>
55+
<waitForElementVisible selector="{{AdminProductAttributesSection.sectionHeader}}" stepKey="waitAttributesSectionAppears"/>
56+
<conditionalClick selector="{{AdminProductAttributesSection.sectionHeader}}" dependentSelector="{{AdminProductAttributesSection.attributeTextInputByCode($createDatetimeAttribute.attribute_code$)}}" visible="false" stepKey="openAttributesSection"/>
57+
<scrollTo selector="{{AdminProductAttributesSection.sectionHeader}}" stepKey="scrollToAttributesSection"/>
5558
<waitForElementVisible selector="{{AdminProductAttributesSection.attributeTextInputByCode($createDatetimeAttribute.attribute_code$)}}" stepKey="waitForSlideOutAttributes"/>
5659
<seeInField selector="{{AdminProductAttributesSection.attributeTextInputByCode($createDatetimeAttribute.attribute_code$)}}" userInput="$generateDefaultValue" stepKey="checkDefaultValue"/>
5760
<!-- Check datetime grid filter -->

0 commit comments

Comments
 (0)