From 540c6a9bbe9045c64399b43d8fdfdbd883ba0eeb Mon Sep 17 00:00:00 2001 From: Connor Anderson Date: Mon, 14 Jun 2021 15:18:26 -0400 Subject: [PATCH] try scrolling to the bottom of results s well --- tests/acceptance/blocks/pagination.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/acceptance/blocks/pagination.js b/tests/acceptance/blocks/pagination.js index a5f1140e4..d110d3dae 100644 --- a/tests/acceptance/blocks/pagination.js +++ b/tests/acceptance/blocks/pagination.js @@ -1,5 +1,6 @@ import { Selector, t } from 'testcafe'; import Page from './page'; +import VerticalResults from './verticalresults'; /** * Models the user interaction with a {import('@yext/answers-search-ui').PaginationComponent}. @@ -14,6 +15,7 @@ class Pagination { */ async nextResults () { await Page.scrollToBottom(); // We must scroll to the bottom of the page to be able to click the next results page button + await VerticalResults.scrollToBottom(); await t.click(this._nextResultsButton); } }