Skip to content

Commit f4abb4f

Browse files
committed
Update files
1 parent f3bc42e commit f4abb4f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

apps/console/dev/__tests__/ViewConfigPanel.test.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ describe('ViewConfigPanel', () => {
14291429
/>
14301430
);
14311431

1432-
expect(screen.getByTestId('data-groupBy')).toBeInTheDocument();
1432+
expect(screen.getByTestId('mock-grouping-editor')).toBeInTheDocument();
14331433
});
14341434

14351435
it('changes groupBy for grid view', () => {
@@ -1444,10 +1444,12 @@ describe('ViewConfigPanel', () => {
14441444
/>
14451445
);
14461446

1447-
const groupBySelect = screen.getByTestId('data-groupBy');
1448-
fireEvent.change(groupBySelect, { target: { value: 'stage' } });
1447+
fireEvent.click(screen.getByTestId('grouping-editor-add'));
14491448

1450-
expect(onViewUpdate).toHaveBeenCalledWith('groupBy', 'stage');
1449+
const groupByCalls = onViewUpdate.mock.calls.filter((c) => c[0] === 'groupBy');
1450+
expect(groupByCalls.length).toBeGreaterThan(0);
1451+
expect(typeof groupByCalls[0][1]).toBe('string');
1452+
expect(groupByCalls[0][1].length).toBeGreaterThan(0);
14511453
});
14521454

14531455
// ── Calendar endDateField test ──

0 commit comments

Comments
 (0)