Skip to content

Commit ecfad06

Browse files
committed
Added page scroll to datatable
1 parent dde6acf commit ecfad06

File tree

1 file changed

+4
-3
lines changed
  • ui-tests/cypress/lib/dashboard/feedback/ratings

1 file changed

+4
-3
lines changed

ui-tests/cypress/lib/dashboard/feedback/ratings/ratings.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,12 @@ const verifyCommentsDataFromTable = ({
348348
email = null,
349349
}) => {
350350

351-
352-
cy.scrollPageToBottom();
353-
354351
clickDatatableCommentsTab();
355352

356353
if (isEmpty) {
357354

355+
cy.scrollPageToBottom();
356+
358357
cy.verifyElement({
359358
element: commentsDataTableElements().EMPTY_TABLE_ICON,
360359
});
@@ -371,6 +370,8 @@ const verifyCommentsDataFromTable = ({
371370
return;
372371
}
373372

373+
cy.scrollPageToBottom();
374+
374375
cy.verifyElement({
375376
shouldNot: !isEmpty,
376377
labelElement: commentsDataTableElements(index).COMMENT,

0 commit comments

Comments
 (0)