Skip to content

Commit

Permalink
Merge pull request #247 from ProcessMaker/updateMethodInScreenAndScript
Browse files Browse the repository at this point in the history
updateMethodInScreenAndScript
  • Loading branch information
WendyFPM authored Sep 25, 2024
2 parents eab13d2 + 891f052 commit 571c656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export class Screens {
searchScreen(screenName, option = 'edit') {
cy.get(Selectors.loadingSpinnerScreen).should('not.be.visible');
cy.wait(3000);
cy.get(Selectors.searchInputBox).first().type(screenName, { delay: 200}).type(" ").type("{backspace}").should('have.value', screenName);
cy.get(Selectors.searchInputBox).first().type(screenName, { delay: 200}).type(" ").type("{backspace}").type(" ").type("{backspace}").should('have.value', screenName);
cy.get(Selectors.loadingSpinnerScreen).should('not.be.visible');
this.pressThreePointsTable();
switch (option) {
Expand Down Expand Up @@ -494,7 +494,7 @@ export class Screens {
searchForAScreen(screenName) {
cy.get(Selectors.screenIndex).should('be.visible');
cy.get(Selectors.noDataAvaiable).should('not.exist');
cy.get(Selectors.searchScreen).type(screenName, { delay: 200}).type(" ").type("{backspace}").should('have.value', screenName);
cy.get(Selectors.searchScreen).type(screenName, { delay: 200}).type(" ").type("{backspace}").type(" ").type("{backspace}").should('have.value', screenName);
cy.wait(1500);
}

Expand Down
2 changes: 1 addition & 1 deletion pages/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export class Scripts {
}else{
cy.xpath(Selectors.runScriptAslabel).should('be.visible');
cy.xpath(Selectors.runScriptAsInput).click({force:true});
cy.xpath(Selectors.runScriptAsInput).type(userName,{delay:80}).should('have.value',userName);
cy.xpath(Selectors.runScriptAsInput).type(userName,{delay:150}).type(" ").type("{backspace}").should('have.value',userName);
cy.xpath(Selectors.runScriptAsWrapper)
.should('have.attr', 'aria-label')
.and('contain', `${userName}. `);
Expand Down

0 comments on commit 571c656

Please sign in to comment.