Skip to content

Commit 861bbcc

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-61962' into NORD-PR-INTERNAL
2 parents 4da1f2f + 0504bed commit 861bbcc

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

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

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,11 @@ class BottomToolbar extends Block
2323
private $nextPageSelector = '.item.current + .item a';
2424

2525
/**
26-
* Selector previous element
26+
* Selector first element
2727
*
2828
* @var string
2929
*/
30-
private $previousPageSelector = '.item.pages-item-previous';
31-
32-
/**
33-
* Selector limiter block
34-
*
35-
* @var string
36-
*/
37-
private $optionBlockSelector = '.control';
30+
private $firstPageSelector = '.item>.page';
3831

3932
/**
4033
* Selector option element
@@ -59,15 +52,15 @@ public function nextPage()
5952
}
6053

6154
/**
62-
* Go to the previous page
55+
* Go to the first page
6356
*
6457
* @return bool
6558
*/
66-
public function previousPage()
59+
public function firstPage()
6760
{
68-
$previousPageItem = $this->_rootElement->find($this->previousPageSelector);
69-
if ($previousPageItem->isVisible()) {
70-
$previousPageItem->click();
61+
$firstPageItem = $this->_rootElement->find($this->firstPageSelector);
62+
if ($firstPageItem->isVisible()) {
63+
$firstPageItem->click();
7164
return true;
7265
}
7366
return false;

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertPaginationCorrectOnStoreFront.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Magento\Catalog\Test\Fixture\Category;
1313

1414
/**
15-
* Checks pagination of storefront for correct pagination and list of products
15+
* Checks correct pagination for list of products on storefront.
1616
*/
1717
class AssertPaginationCorrectOnStoreFront extends AbstractConstraint
1818
{
@@ -56,7 +56,7 @@ public function processAssert(
5656
$catalogCategoryView->getListProductBlock()->getProductsCount(),
5757
'Count of products on 2 page does not equivalent with declared in pagination (default value)'
5858
);
59-
$catalogCategoryView->getBottomToolbar()->previousPage();
59+
$catalogCategoryView->getBottomToolbar()->firstPage();
6060
$catalogCategoryView->getBottomToolbar()->setLimiterValueByIndex(1);
6161
\PHPUnit_Framework_Assert::assertEquals(
6262
$catalogCategoryView->getBottomToolbar()->getLimitedValueByIndex(1),

0 commit comments

Comments
 (0)