Skip to content

Commit

Permalink
Merge pull request #111 from ProcessMaker/updateMethodInABT
Browse files Browse the repository at this point in the history
updateMethodAndSelectorsInABT
  • Loading branch information
WendyFPM authored Jun 13, 2024
2 parents 0188bc5 + 5d9de11 commit 3f6f5bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions pages/abTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,11 @@ export class ABTesting {
}

changeNameOfProcess(newName) {
cy.get('[id="name"]').clear().type(newName).should('have.value', newName);
cy.xpath('//div[@id="nav-config"]//button[contains(text(),"Save and publish")]').should('be.visible')
cy.xpath('//div[@id="nav-config"]//button[contains(text(),"Save and publish")]').click();
cy.get('[data-test="confirm-btn-ok"]').click();
cy.get(selectors.nameInput).clear().type(newName).should('have.value', newName);
cy.xpath(selectors.saveConfiguration).should('be.visible');
cy.xpath(selectors.saveConfiguration).click();
cy.get(selectors.confirmSaveConfiguration).should('be.visible');
cy.get(selectors.confirmSaveConfiguration).click();
}

load() {
Expand Down
5 changes: 4 additions & 1 deletion selectors/abTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default {

//AB Testing from configuration of process
ABTestingTab: '[id="testing-configuration-tab"]',

nameInput:'[id="name"]',
saveConfiguration:'//div[@id="nav-config"]//button[contains(text(),"Save and publish")]',
confirmSaveConfiguration:'[data-test="confirm-btn-ok"]',

//Modeler Elements
addBtn: '[title="Add"]',

Expand Down

0 comments on commit 3f6f5bb

Please sign in to comment.