Skip to content

Commit fe72b24

Browse files
authored
Merge pull request #916 from objectstack-ai/copilot/fix-ci-test-errors
2 parents 10d156b + 6f76110 commit fe72b24

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/plugin-dashboard/src/__tests__/DashboardRenderer.designMode.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,9 @@ describe('DashboardRenderer design mode', () => {
270270
it('should NOT apply pointer-events-none when not in design mode', () => {
271271
const { container } = render(<DashboardRenderer schema={DASHBOARD_WITH_WIDGETS} />);
272272

273-
// No element should have pointer-events-none class
274-
expect(container.querySelector('.pointer-events-none')).not.toBeInTheDocument();
273+
// No design-mode content wrapper should have pointer-events-none class
274+
// (data-table ghost rows have pointer-events-none internally, which is unrelated to design mode)
275+
expect(container.querySelector('.pointer-events-none:not([data-testid="ghost-row"])')).not.toBeInTheDocument();
275276
});
276277

277278
it('should still call onWidgetClick when clicking on Card-based widget content area', () => {

packages/plugin-report/src/__tests__/ReportViewer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ describe('ReportViewer', () => {
408408
const cells = container.querySelectorAll('td');
409409
const wonCell = Array.from(cells).find((td) => td.textContent === 'Won');
410410
expect(wonCell).toBeDefined();
411-
expect(wonCell?.style.backgroundColor).toBe('rgb(187, 247, 208)');
411+
expect(wonCell?.style.backgroundColor).toBe('#bbf7d0');
412412

413413
// The cell with 'Lost' should NOT have background styling
414414
const lostCell = Array.from(cells).find((td) => td.textContent === 'Lost');

0 commit comments

Comments
 (0)