* first cut * Code refactoring, styling * Added Sorting * Revert query_report to use slickgrid * cleanup * Edit cell working * Add regrid, remove datatable * Add clusterize * Update lib, fix get_checked_items * New ReportView * wip * Enable editing, fix styles * update lib * wip * fix refresh rows and editable cells * Refresh list_view every 3s, decouple refreshing logic * Report editing fixes * Cleanup loading fields, add column then refresh list * [wip] New List View * [working] Render results * ListView is now BaseList, add new ListView and GanttView * Create new page for each ListView * GanttView working * CalendarView working * KanbanView working * Cache list_view based on page_name * Gantt view buttons on mobile * Add ReportView * Refresh datatable on render * Setup like * [start][filters] clean up FilterList * [filters] refactor FilterList * [filters] minor fix * [filters] fix remove filter * filter utils * more utils, remove apply * rewrite as class, remove 'me' references * [filter] implement on_change to decouple parent functions * Integrate new filters with new BaseList * Setup freeze area for ListView * Set breadcrumbs on setup_page * Trigger list update from events * Setup footnote area * Fix Kanban Board filters * Add filters to standard filters, then filter_list * Remove old files * Fix ImageView * Some more fixes for BaseList.init * Fix order_by on load * Report View: remember columns * Fix for hidden filters * Fix for delete items * InboxView * Shift select checkboxes * Fix ESLint errors * More refactoring - Move ListMenu to Listview - New FileView - Ability to add custom breadcrumbs * FileManager working * Tags, set filters from route options * Custom Reports Working * List Sidebar reports * Report Name as title * Fix ESLint errors * Fix UI tests * Fix Kanban test * Format ID column * [fix] Kanban cards title * Checkbox fix * Fix Activity Page * Update rows in Report in place * Child Table columns in Report View
29 lines
No EOL
926 B
JavaScript
29 lines
No EOL
926 B
JavaScript
QUnit.module('views');
|
|
|
|
QUnit.test("Test: Kanban view", function(assert) {
|
|
assert.expect(4);
|
|
let done = assert.async();
|
|
|
|
frappe.run_serially([
|
|
() => frappe.set_route("List", "ToDo", "List"),
|
|
// calculate number of element in list
|
|
() => frappe.timeout(1),
|
|
() => frappe.set_route("List", "ToDo", "Kanban", "Kanban test"),
|
|
() => frappe.timeout(2),
|
|
() => {
|
|
assert.equal('Kanban', cur_list.view_name,
|
|
"Current view is kanban.");
|
|
assert.equal("Kanban test", cur_list.page_title,
|
|
"Kanban view opened successfully.");
|
|
// check if all elements are visible in kanban view
|
|
const $high_priority_cards =
|
|
$('.kanban-column[data-column-value="High"] .kanban-card-wrapper');
|
|
const $low_priority_cards =
|
|
$('.kanban-column[data-column-value="Low"] .kanban-card-wrapper');
|
|
|
|
assert.equal($high_priority_cards.length, 1);
|
|
assert.equal($low_priority_cards.length, 1);
|
|
},
|
|
() => done()
|
|
]);
|
|
}); |