File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
dev/tests/functional/tests/app/Magento/Catalog/Test
Block/Product/ProductList Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ class BottomToolbar extends Block
23
23
private $ nextPageSelector = '.item.current + .item a ' ;
24
24
25
25
/**
26
- * Selector previous element
26
+ * Selector first element
27
27
*
28
28
* @var string
29
29
*/
30
- private $ previousPageSelector = '.item.pages-item-previous ' ;
30
+ private $ firstPageSelector = '.item>.page ' ;
31
31
32
32
/**
33
33
* Selector option element
@@ -52,15 +52,15 @@ public function nextPage()
52
52
}
53
53
54
54
/**
55
- * Go to the previous page
55
+ * Go to the first page
56
56
*
57
57
* @return bool
58
58
*/
59
- public function previousPage ()
59
+ public function firstPage ()
60
60
{
61
- $ previousPageItem = $ this ->_rootElement ->find ($ this ->previousPageSelector );
62
- if ($ previousPageItem ->isVisible ()) {
63
- $ previousPageItem ->click ();
61
+ $ firstPageItem = $ this ->_rootElement ->find ($ this ->firstPageSelector );
62
+ if ($ firstPageItem ->isVisible ()) {
63
+ $ firstPageItem ->click ();
64
64
return true ;
65
65
}
66
66
return false ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function processAssert(
56
56
$ catalogCategoryView ->getListProductBlock ()->getProductsCount (),
57
57
'Count of products on 2 page does not equivalent with declared in pagination (default value) '
58
58
);
59
- $ catalogCategoryView ->getBottomToolbar ()->previousPage ();
59
+ $ catalogCategoryView ->getBottomToolbar ()->firstPage ();
60
60
$ catalogCategoryView ->getBottomToolbar ()->setLimiterValueByIndex (1 );
61
61
\PHPUnit_Framework_Assert::assertEquals (
62
62
$ catalogCategoryView ->getBottomToolbar ()->getLimitedValueByIndex (1 ),
You can’t perform that action at this time.
0 commit comments