File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class ListProduct extends Block
22
22
*
23
23
* @var string
24
24
*/
25
- protected $ productItem = './/*[contains(@class,"product-item-link") and contains(., "%s") ]/ancestor::li ' ;
25
+ protected $ productItem = './/*[contains(@class,"product-item-link") and .//*[text()= "%s"] ]/ancestor::li ' ;
26
26
27
27
/**
28
28
* This member holds the class name of the regular price block.
@@ -43,7 +43,7 @@ class ListProduct extends Block
43
43
*
44
44
* @var string
45
45
*/
46
- protected $ productDetailsSelector = '//*[contains(@class, "product details") and contains(., "%s") ] ' ;
46
+ protected $ productDetailsSelector = '//*[contains(@class, "product details") and .//*[text()= "%s"] ] ' ;
47
47
48
48
/**
49
49
* Product name.
You can’t perform that action at this time.
0 commit comments