diff --git a/cypress/integration/table_multiselect.js b/cypress/integration/table_multiselect.js index e53584640b..cca9a6eb46 100644 --- a/cypress/integration/table_multiselect.js +++ b/cypress/integration/table_multiselect.js @@ -9,7 +9,7 @@ context('Table MultiSelect', () => { cy.new_form('Assignment Rule'); cy.fill_field('__newname', name); cy.fill_field('document_type', 'ToDo'); - cy.fill_field('assign_condition', 'status=="Open"'); + cy.fill_field('assign_condition', 'status=="Open"', 'Code'); cy.get('input[data-fieldname="users"]').focus().as('input'); cy.get('input[data-fieldname="users"] + ul').should('be.visible'); cy.get('@input').type('test{enter}', { delay: 100 }); diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 010c0242f5..282481888e 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -41,13 +41,16 @@ Cypress.Commands.add('fill_field', (fieldname, value, fieldtype='Data') => { if (fieldtype === 'Text Editor') { selector = `[data-fieldname="${fieldname}"] .ql-editor`; } + if (fieldtype === 'Code') { + selector = `[data-fieldname="${fieldname}"] .ace_text-input`; + } cy.get(selector).as('input'); if (fieldtype === 'Select') { return cy.get('@input').select(value); } else { - return cy.get('@input').type(value); + return cy.get('@input').type(value, {waitForAnimations: false}); } });