Browse Source

test: multiselect test update as per new UX

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/4957/head
Raju Udava 2 years ago
parent
commit
145cb83f7e
  1. 4
      packages/nc-gui/components/cell/MultiSelect.vue
  2. 4
      packages/nc-gui/components/cell/SingleSelect.vue
  3. 10
      tests/playwright/tests/columnMultiSelect.spec.ts

4
packages/nc-gui/components/cell/MultiSelect.vue

@ -455,4 +455,8 @@ useEventListener(document, 'click', handleClose, true)
:deep(.ant-select-selector) { :deep(.ant-select-selector) {
@apply !px-0; @apply !px-0;
} }
:deep(.ant-select-selection-search-input) {
@apply !text-xs;
}
</style> </style>

4
packages/nc-gui/components/cell/SingleSelect.vue

@ -318,4 +318,8 @@ useEventListener(document, 'click', handleClose, true)
:deep(.ant-select-selector) { :deep(.ant-select-selector) {
@apply !px-0; @apply !px-0;
} }
:deep(.ant-select-selection-search-input) {
@apply !text-xs;
}
</style> </style>

10
tests/playwright/tests/columnMultiSelect.spec.ts

@ -76,18 +76,22 @@ test.describe('Multi select', () => {
multiSelect: true, multiSelect: true,
}); });
await grid.column.selectOption.editOption({ index: 2, columnTitle: 'MultiSelect', newOption: 'New Option 3' }); await grid.column.selectOption.editOption({
index: 2,
columnTitle: 'MultiSelect',
newOption: 'MultiSelect New Option 3',
});
await grid.cell.selectOption.verify({ await grid.cell.selectOption.verify({
index: 0, index: 0,
columnHeader: 'MultiSelect', columnHeader: 'MultiSelect',
option: 'New Option 3', option: 'MultiSelect New Option 3',
multiSelect: true, multiSelect: true,
}); });
await grid.cell.selectOption.verifyOptions({ await grid.cell.selectOption.verifyOptions({
index: 0, index: 0,
columnHeader: 'MultiSelect', columnHeader: 'MultiSelect',
options: ['Option 1', 'Option 2', 'New Option 3'], options: ['Option 1', 'Option 2', 'MultiSelect New Option 3'],
}); });
await grid.deleteRow(0); await grid.deleteRow(0);

Loading…
Cancel
Save