Browse Source

fix(playwright): update opSub in filter.spec.ts

pull/5185/head
Wing-Kam Wong 2 years ago
parent
commit
b7ab137806
  1. 12
      tests/playwright/tests/filters.spec.ts

12
tests/playwright/tests/filters.spec.ts

@ -636,33 +636,33 @@ test.describe.skip('Filter Tests: Date & Time related', () => {
}, },
{ {
op: 'is', op: 'is',
opSub: 'one week ago', opSub: 'oneWeekAgo',
rowCount: records.list.filter(r => r[dataType].split('T')[0] === oneWeekAgo).length, rowCount: records.list.filter(r => r[dataType].split('T')[0] === oneWeekAgo).length,
}, },
{ {
op: 'is', op: 'is',
opSub: 'one week from now', opSub: 'oneWeekFromNow',
rowCount: records.list.filter(r => r[dataType].split('T')[0] === oneWeekFromNow).length, rowCount: records.list.filter(r => r[dataType].split('T')[0] === oneWeekFromNow).length,
}, },
{ {
op: 'is', op: 'is',
opSub: 'one month ago', opSub: 'oneMonthAgo',
rowCount: records.list.filter(r => r[dataType].split('T')[0] === oneMonthAgo).length, rowCount: records.list.filter(r => r[dataType].split('T')[0] === oneMonthAgo).length,
}, },
{ {
op: 'is', op: 'is',
opSub: 'one month from now', opSub: 'oneMonthFromNow',
rowCount: records.list.filter(r => r[dataType].split('T')[0] === oneMonthFromNow).length, rowCount: records.list.filter(r => r[dataType].split('T')[0] === oneMonthFromNow).length,
}, },
{ {
op: 'is', op: 'is',
opSub: 'number of days ago', opSub: 'daysAgo',
value: 45, value: 45,
rowCount: records.list.filter(r => r[dataType].split('T')[0] === daysAgo45).length, rowCount: records.list.filter(r => r[dataType].split('T')[0] === daysAgo45).length,
}, },
{ {
op: 'is', op: 'is',
opSub: 'number of days from now', opSub: 'daysFromNow',
value: 45, value: 45,
rowCount: records.list.filter(r => r[dataType].split('T')[0] === daysFromNow45).length, rowCount: records.list.filter(r => r[dataType].split('T')[0] === daysFromNow45).length,
}, },

Loading…
Cancel
Save