Skip to content

Commit

Permalink
updateMethodInAB
Browse files Browse the repository at this point in the history
  • Loading branch information
WendyFPM committed Jun 13, 2024
1 parent 333589e commit 5abd895
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/abTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,9 @@ 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")]').should('be.visible')
cy.xpath('//div[@id="nav-config"]//button[contains(text(),"Save")]').click();
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();
}

load() {
Expand Down

0 comments on commit 5abd895

Please sign in to comment.