Skip to content

Commit

Permalink
updMethdToAB
Browse files Browse the repository at this point in the history
  • Loading branch information
WendyFPM committed Jun 6, 2024
1 parent 04dc9f2 commit 3a534df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/abTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,14 @@ export class ABTesting {
clickOnEndEvent(nameElement, iframeOption = 'a') {
let iframeSelector = iframeOption === 'a' ? selectors.iframeA : selectors.iframeB
const elementLocator = '[data-type="processmaker.components.nodes.endEvent.Shape"]'
cy.iframe(iframeSelector).find(elementLocator.replace('nameElem', nameElement)).first().should('be.visible').click({ force: true });
cy.iframe(iframeSelector).find(elementLocator.replace('nameElem', nameElement)).first().should('be.visible');
cy.iframe(iframeSelector).find(elementLocator.replace('nameElem', nameElement)).first().click({ force: true });
}

deleteElement(iframeOption = 'a') {
let iframeSelector = iframeOption === 'a' ? selectors.iframeA : selectors.iframeB
cy.iframe(iframeSelector).find(selectors.deleteIcon).should('be.visible').click({ force: true });
cy.iframe(iframeSelector).find(selectors.deleteIcon).should('be.visible');
cy.iframe(iframeSelector).find(selectors.deleteIcon).click({ force: true });
}

discardChanges(iframeOption = 'a') {
Expand Down

0 comments on commit 3a534df

Please sign in to comment.