Skip to content

Commit

Permalink
Merge pull request #79 from ProcessMaker/AddMethodAndSelectorToABTesting
Browse files Browse the repository at this point in the history
AddMethodAndSelectorToABTesting
  • Loading branch information
WendyFPM authored May 27, 2024
2 parents 44efd00 + 4451b4c commit 4d2c259
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/abTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ export class ABTesting {
})
}

clickOnInspectorBtn(iframeOption = 'a') {
let iframeSelector = iframeOption === 'a' ? selectors.iframeA : selectors.iframeB
cy.iframe(iframeSelector).find(selectors.menuInspectorBtn).click();
}

//Publish New Version
publishNewVersion(option, iframeOption, alternative, version, description) {
this.clickOnPublishBtn(iframeOption);
Expand Down
2 changes: 2 additions & 0 deletions selectors/abTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export default {
confirmEnableBtn: 'button[data-test="ab-enable-alternative-ok"]',
confirmDeleteBtn: 'button[data-test="ab-delete-alternative-ok"]',

menuInspectorBtn: '[data-cy="inspector-button"]',

//Replace alternative
replaceAlternativeBtn: '[data-test="tab-replace"]',
ABsettingsBtn: '[data-test="btn-switch-version-info"]',
Expand Down

0 comments on commit 4d2c259

Please sign in to comment.