Skip to content

Commit f0ac21d

Browse files
committed
ACQE-8826: Verify that dropdown attribute with label 'select' displays correctly.
- Add test coverage for dropdown attribute labeled 'select'.
1 parent 198f790 commit f0ac21d

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminVerifyDropdownAttributeLabelSelectDisplaysCorrectlyTest">
12+
<annotations>
13+
<features value="Catalog"/>
14+
<stories value="Create product Attribute"/>
15+
<title value="Dropdown attribute with label 'select' displays correctly"/>
16+
<description value="This test case verify that dropdown attribute with label 'select' displays correctly"/>
17+
<severity value="MAJOR"/>
18+
<testCaseId value="AC-4540"/>
19+
<group value="catalog"/>
20+
</annotations>
21+
<before>
22+
<!-- Pre-condition 1: Create dropdown attribute with label 'select' -->
23+
<createData entity="productDropDownAttribute" stepKey="createDropdownAttr">
24+
<field key="default_frontend_label">'select'</field>
25+
</createData>
26+
<!-- Pre-condition 2: Assign created attribute to Default attribute set -->
27+
<createData entity="AddToDefaultSet" stepKey="assignToDefaultSet">
28+
<requiredEntity createDataKey="createDropdownAttr"/>
29+
</createData>
30+
<!-- Login to admin -->
31+
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
32+
</before>
33+
<after>
34+
<!-- Delete dropdown attribute and logout from admin -->
35+
<deleteData createDataKey="createDropdownAttr" stepKey="deleteDropdownAttr"/>
36+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
37+
</after>
38+
<!-- Step 1: Open products grid page -->
39+
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="openProductIndexPage"/>
40+
<!-- Step 2: Start to create simple product and verify attribute presence -->
41+
<actionGroup ref="GoToCreateProductPageActionGroup" stepKey="goToCreateSimpleProduct">
42+
<argument name="product" value="SimpleProduct"/>
43+
</actionGroup>
44+
<waitForElementVisible selector="{{AdminProductFormSection.productName}}" stepKey="assertProductFormShown"/>
45+
<waitForElementVisible selector="{{AdminProductFormSection.newAddedAttribute($$createDropdownAttr.attribute_code$$)}}" stepKey="seeSelectAttribute"/>
46+
</test>
47+
</tests>

0 commit comments

Comments
 (0)