Skip to content

Commit 6960229

Browse files
author
Natalia Momotenko
committed
2 parents 6e13f19 + 8f7c69a commit 6960229

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Edit/AttributeForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AttributeForm extends FormTabs
3838
*
3939
* @var string
4040
*/
41-
protected $pageTitle = '.page-title .title';
41+
protected $pageTitle = '.page-title';
4242

4343
/**
4444
* Get data of the tabs.

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/ProductDetails/NewCategoryIds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class NewCategoryIds extends Form
4040
*
4141
* @var string
4242
*/
43-
protected $createCategoryButton = '.action-create';
43+
protected $createCategoryButton = '[data-action="save"]';
4444

4545
/**
4646
* Add new category to product.

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

Lines changed: 4 additions & 4 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 @title="%s"]/ancestor::li';
25+
protected $productItem = './/*[contains(@class,"product-item-link") and contains(.,"%s")]/ancestor::li';
2626

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

4848
/**
4949
* Product name.
5050
*
5151
* @var string
5252
*/
53-
protected $productTitle = '.product.name [title="%s"]';
53+
protected $productTitle = './/*[@class="product name product-item-name"]/a[text()="%s"]';
5454

5555
/**
5656
* Click for Price link on category page.
@@ -173,7 +173,7 @@ protected function getProductDetailsElement($productName)
173173
*/
174174
protected function getProductNameElement($productName)
175175
{
176-
return $this->_rootElement->find(sprintf($this->productTitle, $productName));
176+
return $this->_rootElement->find(sprintf($this->productTitle, $productName), Locator::SELECTOR_XPATH);
177177
}
178178

179179
/**

0 commit comments

Comments
 (0)