|
|
@@ -6,6 +6,28 @@ context('List View', () => { |
|
|
|
return frappe.xcall("frappe.tests.ui_test_helpers.setup_workflow"); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
it('Keep checkbox checked after Bulk Update', () => { |
|
|
|
cy.go_to_list('ToDo'); |
|
|
|
cy.get('.list-row-container .list-row-checkbox').click({ multiple: true, force: true }); |
|
|
|
cy.get('.actions-btn-group button').contains('Actions').should('be.visible').click(); |
|
|
|
cy.get('.dropdown-menu li:visible .dropdown-item .menu-item-label[data-label="Edit"]').click(); |
|
|
|
|
|
|
|
cy.get('.modal-body .form-control[data-fieldname="field"]').first().select('Due Date').wait(200); |
|
|
|
cy.get('.modal-body .frappe-control[data-fieldname="value"] input:visible').first().focus(); |
|
|
|
cy.get('.datepickers-container .datepicker.active').should('be.visible'); |
|
|
|
|
|
|
|
cy.get('.datepickers-container .datepicker.active .datepicker--cell-day.-current-').click({force: true}); |
|
|
|
cy.get('.modal-body .frappe-control[data-fieldname="value"] input:visible').first().focus(); |
|
|
|
cy.get('.datepickers-container .datepicker.active .datepicker--cell-day.-current-').click({force: true}); |
|
|
|
|
|
|
|
cy.get('.modal-footer .standard-actions .btn-primary').click(); |
|
|
|
cy.wait(500); |
|
|
|
|
|
|
|
cy.get('.actions-btn-group button').contains('Actions').should('be.visible').click(); |
|
|
|
cy.get('.list-row-container .list-row-checkbox:checked').should('be.visible'); |
|
|
|
}); |
|
|
|
|
|
|
|
it('enables "Actions" button', () => { |
|
|
|
const actions = ['Approve', 'Reject', 'Edit', 'Export', 'Assign To', 'Apply Assignment Rule', 'Add Tags', 'Print', 'Delete']; |
|
|
|
cy.go_to_list('ToDo'); |
|
|
@@ -30,4 +52,3 @@ context('List View', () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|