diff --git a/pages/naturalLanguage.js b/pages/naturalLanguage.js index 94d1846..38cc6c7 100644 --- a/pages/naturalLanguage.js +++ b/pages/naturalLanguage.js @@ -17,7 +17,8 @@ export class NaturalLanguage { } clickOnGenerate(){ - cy.get(selectors.generateBTtnNL).click(); + cy.get(selectors.generateBTtnNL).should('be.visible').click({timeout: 1000}); + cy.wait(3000); } createSimpleProcess(descriptionData){ @@ -66,7 +67,6 @@ export class NaturalLanguage { } clickOnSecondHistoryListed(){ - //cy.wait(2000); cy.get('[data-test="history-list"]').should('be.visible'); cy.get(selectors.historySecondListed).should('be.visible').click(); } diff --git a/pages/smartInbox.js b/pages/smartInbox.js index 97c04f0..13d786c 100644 --- a/pages/smartInbox.js +++ b/pages/smartInbox.js @@ -9,9 +9,9 @@ export class SmartInbox { cy.get(selectors.loadingSpinnerTask).should('not.be.visible'); cy.xpath("//table//td//*[contains(text(),'"+taskName+"')]").should('be.visible'); } - taskAsPriority(taskName, priorityCol = 3){ + taskAsPriority(taskName, priorityCol = 2){ cy.xpath("//*[@data-cy='tasks-table']//*[contains(text(),'"+taskName+"')]").should('be.visible'); - cy.xpath('(//tbody//td['+ priorityCol +']//img)[1]').should('be.visible').click(); + cy.xpath('(//tbody//td["'+ priorityCol +'"]//img)[1]').should('be.visible').click(); cy.get(selectors.loadingSpinnerTask).should('be.visible'); cy.get(selectors.loadingSpinnerTask).should('not.be.visible'); cy.get('[alt="priority"]').should('be.visible');