|
|
@ -25,7 +25,11 @@ async function retrieveRecordsAndValidate( |
|
|
|
) { |
|
|
|
) { |
|
|
|
let expectedRecords = []; |
|
|
|
let expectedRecords = []; |
|
|
|
let toFloat = false; |
|
|
|
let toFloat = false; |
|
|
|
if (['Number', 'Decimal', 'Currency', 'Percent', 'Rating'].includes(title)) { |
|
|
|
if ( |
|
|
|
|
|
|
|
['Number', 'Decimal', 'Currency', 'Percent', 'Duration', 'Rating'].includes( |
|
|
|
|
|
|
|
title |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) { |
|
|
|
toFloat = true; |
|
|
|
toFloat = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -431,6 +435,20 @@ function filterNumberBased() { |
|
|
|
await verifyFilters('Percent', columns[4].id, filterList); |
|
|
|
await verifyFilters('Percent', columns[4].id, filterList); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it('Type: Duration', async () => { |
|
|
|
|
|
|
|
let filterList = [ |
|
|
|
|
|
|
|
{ comparison_op: 'eq', value: '10' }, |
|
|
|
|
|
|
|
{ comparison_op: 'neq', value: '10' }, |
|
|
|
|
|
|
|
{ comparison_op: 'null', value: '' }, |
|
|
|
|
|
|
|
{ comparison_op: 'notnull', value: '' }, |
|
|
|
|
|
|
|
{ comparison_op: 'gt', value: '50' }, |
|
|
|
|
|
|
|
{ comparison_op: 'gte', value: '50' }, |
|
|
|
|
|
|
|
{ comparison_op: 'lt', value: '50' }, |
|
|
|
|
|
|
|
{ comparison_op: 'lte', value: '50' }, |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
await verifyFilters('Duration', columns[5].id, filterList); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('Type: Rating', async () => { |
|
|
|
it('Type: Rating', async () => { |
|
|
|
let filterList = [ |
|
|
|
let filterList = [ |
|
|
|
{ comparison_op: 'eq', value: '3' }, |
|
|
|
{ comparison_op: 'eq', value: '3' }, |
|
|
|