|
|
@ -314,7 +314,10 @@ Cypress.Commands.add('getActiveDrawer', (selector) => { |
|
|
|
return cy.get('.ant-drawer-content:visible').last(); |
|
|
|
return cy.get('.ant-drawer-content:visible').last(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Cypress.Commands.add('getActivePicker', () => { |
|
|
|
Cypress.Commands.add('getActivePicker', (dropdownSelector) => { |
|
|
|
|
|
|
|
if (dropdownSelector) { |
|
|
|
|
|
|
|
return cy.get(`${dropdownSelector}.ant-drawer-content:visible`).last(); |
|
|
|
|
|
|
|
} |
|
|
|
return cy.get('.ant-picker-dropdown :visible').last(); |
|
|
|
return cy.get('.ant-picker-dropdown :visible').last(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|