mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: filter by me on CRUD list view (#11683)
This commit is contained in:
@@ -56,6 +56,10 @@ const mockdatabases = [...new Array(3)].map((_, i) => ({
|
||||
id: i,
|
||||
}));
|
||||
|
||||
const mockUser = {
|
||||
userId: 1,
|
||||
};
|
||||
|
||||
fetchMock.get(databasesInfoEndpoint, {
|
||||
permissions: ['can_delete'],
|
||||
});
|
||||
@@ -77,7 +81,9 @@ fetchMock.get(databaseRelatedEndpoint, {
|
||||
});
|
||||
|
||||
describe('DatabaseList', () => {
|
||||
const wrapper = mount(<DatabaseList />, { context: { store } });
|
||||
const wrapper = mount(<DatabaseList user={mockUser} />, {
|
||||
context: { store },
|
||||
});
|
||||
|
||||
beforeAll(async () => {
|
||||
await waitForComponentToPaint(wrapper);
|
||||
|
||||
Reference in New Issue
Block a user