From 6811ba9c9540ed8619c912b6cb4e744aaec032d4 Mon Sep 17 00:00:00 2001 From: WendyFPM Date: Tue, 28 May 2024 19:21:44 -0400 Subject: [PATCH] addMethodToAB --- pages/abTesting.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/abTesting.js b/pages/abTesting.js index e970028..bf1897b 100644 --- a/pages/abTesting.js +++ b/pages/abTesting.js @@ -328,4 +328,12 @@ export class ABTesting { cy.visit(url); }); } + + renameStartEventName(newName,iframeOption = 'a'){ + let iframeSelector = iframeOption === 'a' ? selectors.iframeA : selectors.iframeB + this.clickOnInspectorBtn(iframeOption); + this.clickOnStartEvent(nameElement, iframeOption); + cy.iframe(iframeSelector).xpath('//div[@id="collapse-inspector-accordion-start-event"]//input[@name="name"]').clear().type(newName); + } + }