Skip to content

Commit 1ee0156

Browse files
authored
ENGCOM-4598: [Backport] Fixed issue 20790 wishlist icons #21118
2 parents 48ecf4f + 6b332d0 commit 1ee0156

File tree

3 files changed

+33
-14
lines changed

3 files changed

+33
-14
lines changed

app/code/Magento/Wishlist/Test/Mftf/Section/StorefrontCustomerWishlistSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
1111
<section name="StorefrontCustomerWishlistSection">
1212
<element name="productItemNameText" type="text" selector=".products-grid .product-item-name a"/>
13-
<element name="removeWishlistButton" type="button" selector=".products-grid .btn-remove.action.delete>span" timeout="30"/>
13+
<element name="removeWishlistButton" type="button" selector=".products-grid .btn-remove.action.delete" timeout="30"/>
1414
<element name="emptyWishlistText" type="text" selector=".message.info.empty>span"/>
1515
<element name="successMsg" type="text" selector="div.message-success.success.message"/>
1616
</section>

app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontDeletePersistedWishlistTest.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
*/
77
-->
88

9-
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1010
<test name="StorefrontDeletePersistedWishlistTest">
1111
<annotations>
12-
<features value="Delete a persist wishlist for a customer"/>
12+
<features value="Wishlist"/>
1313
<stories value="Delete a persist wishlist for a customer"/>
14-
<title value="Delete a persist wishlist for a customer"/>
15-
<description value="Delete a persist wishlist for a customer"/>
14+
<title value="Customer should be able to delete a persistent wishlist"/>
15+
<description value="Customer should be able to delete a persistent wishlist"/>
16+
<severity value="AVERAGE"/>
1617
<group value="wishlist"/>
18+
<testCaseId value="MC-4110"/>
1719
</annotations>
1820
<before>
1921
<createData stepKey="category" entity="SimpleSubCategory"/>

app/design/frontend/Magento/luma/Magento_Wishlist/web/css/source/_module.less

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,31 @@
164164
}
165165
}
166166
}
167+
168+
.products-grid.wishlist {
169+
.product-item-actions {
170+
.action {
171+
&.edit,
172+
&.delete {
173+
.lib-icon-font(
174+
@icon-edit,
175+
@_icon-font-size: 18px,
176+
@_icon-font-line-height: 20px,
177+
@_icon-font-text-hide: true,
178+
@_icon-font-color: @minicart-icons-color,
179+
@_icon-font-color-hover: @primary__color,
180+
@_icon-font-color-active: @minicart-icons-color
181+
);
182+
}
183+
184+
&.delete {
185+
.lib-icon-font-symbol(
186+
@_icon-font-content: @icon-trash
187+
);
188+
}
189+
}
190+
}
191+
}
167192
}
168193

169194
//
@@ -211,15 +236,7 @@
211236
&:last-child {
212237
margin-right: 0;
213238
}
214-
215-
&.edit {
216-
float: left;
217-
}
218-
219-
&.delete {
220-
float: right;
221-
}
222-
239+
223240
&.edit,
224241
&.delete {
225242
margin-top: 7px;

0 commit comments

Comments
 (0)