Skip to content

Commit 4864522

Browse files
author
Dmytro Vilchynskyi
committed
MAGETWO-32250: Header
- fixed functional tests
1 parent a19c765 commit 4864522

File tree

1 file changed

+2
-2
lines changed
  • dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product

1 file changed

+2
-2
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/ListProduct.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ListProduct extends Block
2222
*
2323
* @var string
2424
*/
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';
2626

2727
/**
2828
* This member holds the class name of the regular price block.
@@ -43,7 +43,7 @@ class ListProduct extends Block
4343
*
4444
* @var string
4545
*/
46-
protected $productDetailsSelector = '//*[contains(@class, "product details") and contains(.,"%s")]';
46+
protected $productDetailsSelector = '//*[contains(@class, "product details") and .//*[text()="%s"]]';
4747

4848
/**
4949
* Product name.

0 commit comments

Comments
 (0)