Skip to content

Commit

Permalink
Merge pull request #99 from ProcessMaker/updMethdToAB
Browse files Browse the repository at this point in the history
updMethdToAB
  • Loading branch information
WendyFPM authored Jun 6, 2024
2 parents 04dc9f2 + 3a534df commit 5194974
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 5194974

Please sign in to comment.