Skip to content

Commit

Permalink
try scrolling to the bottom of results s well
Browse files Browse the repository at this point in the history
  • Loading branch information
cea2aj committed Jun 14, 2021
1 parent 2e5874b commit 540c6a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/acceptance/blocks/pagination.js
Original file line number Diff line number Diff line change
@@ -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}.
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 540c6a9

Please sign in to comment.