|
19 | 19 | </annotations>
|
20 | 20 |
|
21 | 21 | <before>
|
22 |
| - <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 22 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
23 | 23 | </before>
|
| 24 | + |
24 | 25 | <after>
|
25 | 26 | <deleteData createDataKey="createDatetimeAttribute" stepKey="deleteDatetimeAttribute"/>
|
26 | 27 | <actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteCreatedProduct">
|
|
45 | 46 | <actionGroup ref="AddProductAttributeInProductModalActionGroup" stepKey="addDatetimeAttribute">
|
46 | 47 | <argument name="attributeCode" value="$createDatetimeAttribute.attribute_code$"/>
|
47 | 48 | </actionGroup>
|
48 |
| - <!-- Flush config cache to reset product attributes in attribute set --> |
49 |
| - <magentoCLI command="cache:flush" arguments="config" stepKey="flushConfigCache"/> |
50 | 49 | <!-- Save the product -->
|
51 | 50 | <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"/> |
52 | 54 | <!-- 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"/> |
55 | 58 | <waitForElementVisible selector="{{AdminProductAttributesSection.attributeTextInputByCode($createDatetimeAttribute.attribute_code$)}}" stepKey="waitForSlideOutAttributes"/>
|
56 | 59 | <seeInField selector="{{AdminProductAttributesSection.attributeTextInputByCode($createDatetimeAttribute.attribute_code$)}}" userInput="$generateDefaultValue" stepKey="checkDefaultValue"/>
|
57 | 60 | <!-- Check datetime grid filter -->
|
|
0 commit comments