Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
MayraMelisa committed Sep 26, 2024
1 parent d25d39a commit 5e4f7bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pages/naturalLanguage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 5e4f7bc

Please sign in to comment.