Browse Source

test: sort for multiselect

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/4886/head
Raju Udava 2 years ago
parent
commit
eadb3804c2
  1. 3
      tests/playwright/tests/columnCheckbox.spec.ts
  2. 18
      tests/playwright/tests/columnMultiSelect.spec.ts

3
tests/playwright/tests/columnCheckbox.spec.ts

@ -109,9 +109,6 @@ test.describe('Checkbox - cell, filter, sort', () => {
await validateRowArray(['1a', '1c', '1f', '1b', '1d', '1e']);
await toolbar.sort.reset();
// wait for 10 seconds
await dashboard.rootPage.waitForTimeout(10000);
// TBD: Add more tests
// Expanded form insert
// Expanded record insert

18
tests/playwright/tests/columnMultiSelect.spec.ts

@ -259,5 +259,23 @@ test.describe('Multi select - filters', () => {
await verifyFilter({ opType: 'is not null', result: ['2', '3', '4', '5', '6'] });
await verifyFilter({ opType: 'is null', result: ['1'] });
await verifyFilter({ opType: 'does not contain any of', value: 'baz', result: ['1', '2', '3', '5'] });
// Sort column
await toolbar.sort.add({
columnTitle: 'MultiSelect',
isAscending: true,
isLocallySaved: false,
});
await validateRowArray(['1', '3', '4', '2', '5', '6']);
await toolbar.sort.reset();
// sort descending & validate
await toolbar.sort.add({
columnTitle: 'MultiSelect',
isAscending: false,
isLocallySaved: false,
});
await validateRowArray(['6', '5', '2', '4', '3', '1']);
await toolbar.sort.reset();
});
});

Loading…
Cancel
Save