Skip to content

Commit 16c17a7

Browse files
Copilothotlong
andcommitted
fix: update tests to pass showViewSwitcher=true when testing ViewSwitcher
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent c34a2ca commit 16c17a7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/plugin-list/src/__tests__/ListView.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ describe('ListView', () => {
108108
},
109109
};
110110

111-
renderWithProvider(<ListView schema={schema} />);
111+
renderWithProvider(<ListView schema={schema} showViewSwitcher={true} />);
112112

113113
// Find kanban view button and click it
114114
// ViewSwitcher uses buttons with aria-label

packages/plugin-list/src/__tests__/ListViewPersistence.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('ListView Persistence', () => {
5656
},
5757
};
5858

59-
renderWithProvider(<ListView schema={schema} />);
59+
renderWithProvider(<ListView schema={schema} showViewSwitcher={true} />);
6060

6161
// Simulate changing to kanban view
6262
const kanbanButton = screen.getByLabelText('Kanban');
@@ -89,7 +89,7 @@ describe('ListView Persistence', () => {
8989
},
9090
};
9191

92-
renderWithProvider(<ListView schema={viewB_Schema} />);
92+
renderWithProvider(<ListView schema={viewB_Schema} showViewSwitcher={true} />);
9393

9494
// Should use the schema default 'kanban' (since no storage exists for THIS view id)
9595
// It should NOT use 'grid' from the global/default view.
@@ -117,7 +117,7 @@ describe('ListView Persistence', () => {
117117
},
118118
};
119119

120-
renderWithProvider(<ListView schema={schema} />);
120+
renderWithProvider(<ListView schema={schema} showViewSwitcher={true} />);
121121

122122
// Should respect schema ('grid') because storage persistence is currently disabled
123123
const kanbanButton = screen.getByLabelText('Kanban');

0 commit comments

Comments
 (0)