test(command): Select staticarea of field if input is not available
This commit is contained in:
parent
47a63b94e6
commit
c27b9d3f31
1 changed files with 1 additions and 1 deletions
|
|
@ -207,8 +207,8 @@ Cypress.Commands.add('get_table_field', (tablefieldname, row_idx, fieldname, fie
|
|||
selector += ` [data-fieldname="${fieldname}"] .ace_text-input`;
|
||||
} else {
|
||||
selector += ` [data-fieldname="${fieldname}"]`;
|
||||
return cy.get(selector).find('.form-control:visible, .static-area:visible').first();
|
||||
}
|
||||
|
||||
return cy.get(selector);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue