#8581 invoiceIn e2e #1452
|
@ -501,8 +501,11 @@ Cypress.Commands.add('checkDate', (rawDate, expectedVal, operation) => {
|
|||
});
|
||||
|
||||
Cypress.Commands.add('selectDescriptorOption', (opt = 1) => {
|
||||
cy.openActionsDescriptor();
|
||||
const listItem = '[data-cy="descriptor-more-opts_list"]';
|
||||
cy.get('body').then(($body) => {
|
||||
if (!$body.find(listItem).length) cy.openActionsDescriptor();
|
||||
});
|
||||
|
||||
cy.waitForElement(listItem);
|
||||
cy.get(`${listItem} > :not(template):nth-of-type(${opt})`).click();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue