diff --git a/pages/abTesting.js b/pages/abTesting.js index ccb29c6..45cbbcd 100644 --- a/pages/abTesting.js +++ b/pages/abTesting.js @@ -374,7 +374,7 @@ export class ABTesting { } goToEndPage(){ - cy.get('[data-cy="editorViewFrame"]') + cy.get(selectors.bodyPageInSummary) .click({ force: true }) .type("{meta+downarrow}"); } diff --git a/selectors/abTesting.js b/selectors/abTesting.js index 54b17b2..26334f8 100644 --- a/selectors/abTesting.js +++ b/selectors/abTesting.js @@ -51,4 +51,6 @@ export default { //Corona elements deleteIcon: '[title="Delete"]', + bodyPageInSummary:'[class="view-lines monaco-mouse-cursor-text"]', + } \ No newline at end of file