Skip to content

Commit

Permalink
addMethodToAB
Browse files Browse the repository at this point in the history
  • Loading branch information
WendyFPM committed May 28, 2024
1 parent a94cc56 commit 6811ba9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pages/abTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}

0 comments on commit 6811ba9

Please sign in to comment.