* 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
33 lines
No EOL
905 B
JavaScript
33 lines
No EOL
905 B
JavaScript
QUnit.module('Setup');
|
|
|
|
QUnit.test("Test List Count", function(assert) {
|
|
assert.expect(3);
|
|
const done = assert.async();
|
|
|
|
frappe.run_serially([
|
|
() => frappe.set_route('List', 'DocType'),
|
|
() => frappe.timeout(0.5),
|
|
() => {
|
|
let count = $('.list-count').text().split(' ')[0];
|
|
assert.equal(cur_list.data.length, count, "Correct Count");
|
|
},
|
|
|
|
() => frappe.timeout(1),
|
|
() => cur_list.filter_area.add('Doctype', 'module', '=', 'Desk'),
|
|
() => frappe.click_button('Refresh'),
|
|
() => {
|
|
let count = $('.list-count').text().split(' ')[0];
|
|
assert.equal(cur_list.data.length, count, "Correct Count");
|
|
},
|
|
|
|
() => cur_list.filter_area.clear(),
|
|
() => frappe.timeout(1),
|
|
() => {
|
|
cur_list.filter_area.add('DocField', 'fieldname', 'like', 'owner');
|
|
let count = $('.list-count').text().split(' ')[0];
|
|
assert.equal(cur_list.data.length, count, "Correct Count");
|
|
},
|
|
|
|
done
|
|
]);
|
|
}); |