From 3e63ad6c2d8c2e36cf4348544f015473c8973d38 Mon Sep 17 00:00:00 2001 From: Yousif Yassi Date: Tue, 30 Jul 2024 18:25:28 -0400 Subject: [PATCH] more pagination test update --- web/libs/editor/tests/e2e/fragments/AtImageView.js | 4 ++-- .../e2e/tests/repeater-paginate-scroll.test.js | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/libs/editor/tests/e2e/fragments/AtImageView.js b/web/libs/editor/tests/e2e/fragments/AtImageView.js index 526f603b1e93..c4009555275a 100644 --- a/web/libs/editor/tests/e2e/fragments/AtImageView.js +++ b/web/libs/editor/tests/e2e/fragments/AtImageView.js @@ -13,8 +13,8 @@ module.exports = { _rootSelector: '[class^="lsf-object wrapperComponent--"]', _paginationSelector: '[class^="pagination--"]', - _paginationPrevBtnSelector: ".lsf-pagination__btn_arrow-left:not(.lsf-pagination__btn_arrow-left-double)", - _paginationNextBtnSelector: ".lsf-pagination__btn_arrow-right:not(.lsf-pagination__btn_arrow-right-double)", + _paginationPrevBtnSelector: ".lsf-pagination-lsf__btn_arrow-left:not(.lsf-pagination-lsf__btn_arrow-left-double)", + _paginationNextBtnSelector: ".lsf-pagination-lsf__btn_arrow-right:not(.lsf-pagination-lsf__btn_arrow-right-double)", locateRoot() { return locate(this._rootSelector); diff --git a/web/libs/editor/tests/e2e/tests/repeater-paginate-scroll.test.js b/web/libs/editor/tests/e2e/tests/repeater-paginate-scroll.test.js index 84fb8899a9a2..9688b16bb3ab 100644 --- a/web/libs/editor/tests/e2e/tests/repeater-paginate-scroll.test.js +++ b/web/libs/editor/tests/e2e/tests/repeater-paginate-scroll.test.js @@ -114,18 +114,18 @@ const checkScrollToSelectedPersists = (I, label, outliner) => { const checkPaginateToSelectedPersists = (I, label, page, outliner) => { checkScrollToSelectedPersists(I, label, outliner); - I.seeElement(locate(".lsf-pagination__page-indicator").withText(`${page}`)); + I.seeElement(locate(".lsf-pagination-lsf__page-indicator").withText(`${page}`)); }; const checkPaginationButtons = (I) => { - I.click(locate(".lsf-pagination__btn_arrow-left-double")); - I.seeElement(locate(".lsf-pagination__page-indicator").withText("1")); + I.click(locate(".lsf-pagination-lsf__btn_arrow-left-double")); + I.seeElement(locate(".lsf-pagination-lsf__page-indicator").withText("1")); - I.click(locate(".lsf-pagination__btn_arrow-right")); - I.seeElement(locate(".lsf-pagination__page-indicator").withText("2")); + I.click(locate(".lsf-pagination-lsf__btn_arrow-right")); + I.seeElement(locate(".lsf-pagination-lsf__page-indicator").withText("2")); - I.click(locate(".lsf-pagination__btn_arrow-right")); - I.seeElement(locate(".lsf-pagination__page-indicator").withText("3")); + I.click(locate(".lsf-pagination-lsf__btn_arrow-right")); + I.seeElement(locate(".lsf-pagination-lsf__page-indicator").withText("3")); }; const checkSubmit = (I) => {