diff --git a/pages/naturalLanguage.js b/pages/naturalLanguage.js index 7c7b46f..640858a 100644 --- a/pages/naturalLanguage.js +++ b/pages/naturalLanguage.js @@ -15,20 +15,19 @@ export class NaturalLanguage { setDataOnDescription(descriptionData){ cy.get('[class="tox-edit-area__iframe"]').then(($iframe) => { const $body = $iframe.contents().find('body'); - cy.wrap($body).find('p').type(descriptionData); + cy.wrap($body).find('p').type(descriptionData,{delay:500}); }); - //cy.get(selectors.descriptionNL).type(descriptionData,{delay:500}); } clickOnGenerate(){ - cy.get(selectors.generateBTtnNL).should('be.visible').click({timeout: 1000}); - cy.wait(5000); + cy.get(selectors.generateBTtnNL).should('be.visible').click({timeout: 5000}); } createSimpleProcess(descriptionData){ cy.get(selectors.aiIcon).should('exist'); this.clickOnDescription(); this.setDataOnDescription(descriptionData); + cy.wait(500); this.clickOnGenerate(); cy.get(selectors.aiIcon).should('not.exist'); cy.get('.spinner-border').should('exist');