|
|
|
@ -32,7 +32,7 @@ test.describe('Shared view', () => {
|
|
|
|
|
|
|
|
|
|
// hide column
|
|
|
|
|
await dashboard.grid.toolbar.fields.toggle({ title: 'Address2' }); |
|
|
|
|
await dashboard.grid.toolbar.fields.toggle({ title: 'Store List' }); |
|
|
|
|
await dashboard.grid.toolbar.fields.toggle({ title: 'Stores' }); |
|
|
|
|
|
|
|
|
|
// sort
|
|
|
|
|
await dashboard.grid.toolbar.sort.add({ |
|
|
|
@ -73,9 +73,9 @@ test.describe('Shared view', () => {
|
|
|
|
|
{ title: 'PostalCode', isVisible: true }, |
|
|
|
|
{ title: 'Phone', isVisible: true }, |
|
|
|
|
{ title: 'LastUpdate', isVisible: true }, |
|
|
|
|
{ title: 'Customer List', isVisible: true }, |
|
|
|
|
{ title: 'Staff List', isVisible: true }, |
|
|
|
|
{ title: 'Store List', isVisible: false }, |
|
|
|
|
{ title: 'Customers', isVisible: true }, |
|
|
|
|
{ title: 'Staffs', isVisible: true }, |
|
|
|
|
{ title: 'Stores', isVisible: false }, |
|
|
|
|
{ title: 'City', isVisible: true }, |
|
|
|
|
]; |
|
|
|
|
for (const column of expectedColumns) { |
|
|
|
@ -281,15 +281,15 @@ const sqliteExpectedRecords2 = [
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
const expectedVirtualRecords = [ |
|
|
|
|
{ index: 0, columnHeader: 'Customer List', count: 1, type: 'hm' }, |
|
|
|
|
{ index: 1, columnHeader: 'Customer List', count: 1, type: 'hm' }, |
|
|
|
|
{ index: 0, columnHeader: 'Customers', count: 1, type: 'hm' }, |
|
|
|
|
{ index: 1, columnHeader: 'Customers', count: 1, type: 'hm' }, |
|
|
|
|
{ index: 0, columnHeader: 'City', count: 1, type: 'bt', value: ['Kanchrapara'] }, |
|
|
|
|
{ index: 1, columnHeader: 'City', count: 1, type: 'bt', value: ['Tafuna'] }, |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
const sqliteExpectedVirtualRecords = [ |
|
|
|
|
{ index: 0, columnHeader: 'Customer List', count: 1, type: 'hm' }, |
|
|
|
|
{ index: 1, columnHeader: 'Customer List', count: 1, type: 'hm' }, |
|
|
|
|
{ index: 0, columnHeader: 'Customers', count: 1, type: 'hm' }, |
|
|
|
|
{ index: 1, columnHeader: 'Customers', count: 1, type: 'hm' }, |
|
|
|
|
{ index: 0, columnHeader: 'City', count: 1, type: 'bt', value: ['Davao'] }, |
|
|
|
|
{ index: 1, columnHeader: 'City', count: 1, type: 'bt', value: ['Nagareyama'] }, |
|
|
|
|
]; |
|
|
|
|