Skip to content

Commit

Permalink
Merge pull request #19 from ProcessMaker/AI_funtions
Browse files Browse the repository at this point in the history
upd-funtions AI, createTranslation and generateProcessFromImage
  • Loading branch information
MayraMelisa authored Apr 29, 2024
2 parents b17b6a3 + 6a2e8f2 commit 66daece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/naturalLanguage.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class NaturalLanguage {
}

generateProcessFromImage(){
cy.get('.preview-file-info').should('exist');
cy.get('[class="icon-wrapper p-1 mx-3"]').should('exist');
cy.get('.btn-outline-secondary').should('be.visible',{timeout: 1000});
cy.xpath("//button[contains(text(),'Generate')]").should('be.visible').click({timeout: 1000});
cy.get('[role="progressbar"]').should('exist');
Expand Down
4 changes: 2 additions & 2 deletions pages/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Translations {
cy.xpath("//label[text()='Select a target language']/parent::div//input").type(languageSet+'{enter}',{delay:1000});
cy.xpath(selectors.translateProcessBtn).should("be.visible").click({force: true}, {timeout: 2000});
cy.xpath('//div[@id="createProcessTranslation___BV_modal_content_"]').should("be.visible",{timeout: 5000});
cy.wait(3000);
cy.wait(5000);
}

/**
Expand All @@ -50,7 +50,7 @@ export class Translations {
* @return nothing returns
*/
verifyCreation(languageSet){
cy.xpath(selectors.translationsSearch).should("be.visible").type(languageSet,{delay:1000});
cy.xpath(selectors.translationsSearch).should("be.visible").type(languageSet);
this.waitUntilTranslationComplete('selector','button [class="text-capitalize screen-toolbar-button"]');
cy.get('#table-translations > tbody > tr:nth-child(1)').should("be.visible");
cy.xpath(selectors.openTranslation.replace('language', languageSet)).should('be.visible').first().click({force: true});
Expand Down

0 comments on commit 66daece

Please sign in to comment.