Skip to content

Commit

Permalink
Merge pull request #50 from ProcessMaker/addAndUpdateMethodsABTesting…
Browse files Browse the repository at this point in the history
…ProcessTesting

addAndUpdateMethodsABTestingProcessTesting
  • Loading branch information
WendyFPM authored May 17, 2024
2 parents 7e6633d + e6b3760 commit 58c04c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions pages/abTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ export class ABTesting {
}

selectAlternative(alternative, iframeOption) {

switch (alternative) {
case 'Alternative A':
this.selectAlternativeA(iframeOption);
Expand Down Expand Up @@ -263,9 +262,14 @@ export class ABTesting {
}
})
}

}
load() {
cy.wait(3000);
}

//Close modal Run test in AB testing
closeModal(iframeOption = 'a') {
let iframeSelector = iframeOption === 'a' ? selectors.iframeA : selectors.iframeB
cy.iframe(iframeSelector).find('[class="modal-content"]').find(selectors.closeModalPublish).click();
}
}
2 changes: 1 addition & 1 deletion pages/processTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export class ProcessTesting {
cy.get(selectors.alternativeField).select('Alternative B').should('have.value', 'B');
break;
case "As configured in the process":
cy.get(selectors.alternativeField).select('As configured in the process').should('have.value', 'A');
cy.get(selectors.alternativeField).select('As configured in the process').should('have.value', 'AB');
break;
default:
break;
Expand Down

0 comments on commit 58c04c2

Please sign in to comment.