mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat: filter by me on CRUD list view (#11683)
This commit is contained in:
@@ -52,6 +52,10 @@ const mockdatasets = [...new Array(3)].map((_, i) => ({
|
||||
table_name: `coolest table ${i}`,
|
||||
}));
|
||||
|
||||
const mockUser = {
|
||||
userId: 1,
|
||||
};
|
||||
|
||||
fetchMock.get(datasetsInfoEndpoint, {
|
||||
permissions: ['can_list', 'can_edit', 'can_add', 'can_delete'],
|
||||
});
|
||||
@@ -70,7 +74,7 @@ fetchMock.get(databaseEndpoint, {
|
||||
});
|
||||
|
||||
async function mountAndWait(props) {
|
||||
const mounted = mount(<DatasetList {...props} />, {
|
||||
const mounted = mount(<DatasetList {...props} user={mockUser} />, {
|
||||
context: { store },
|
||||
});
|
||||
await waitForComponentToPaint(mounted);
|
||||
|
||||
Reference in New Issue
Block a user