mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
feat: filters for alerts and reports list view (#11900)
This commit is contained in:
@@ -62,6 +62,10 @@ const mockalerts = [...new Array(3)].map((_, i) => ({
|
||||
type: 'alert',
|
||||
}));
|
||||
|
||||
const mockUser = {
|
||||
userId: 1,
|
||||
};
|
||||
|
||||
fetchMock.get(alertsEndpoint, {
|
||||
ids: [2, 0, 1],
|
||||
result: mockalerts,
|
||||
@@ -74,7 +78,7 @@ fetchMock.put(alertEndpoint, { ...mockalerts[0], active: false });
|
||||
fetchMock.put(alertsEndpoint, { ...mockalerts[0], active: false });
|
||||
|
||||
async function mountAndWait(props) {
|
||||
const mounted = mount(<AlertList {...props} />, {
|
||||
const mounted = mount(<AlertList {...props} user={mockUser} />, {
|
||||
context: { store },
|
||||
});
|
||||
await waitForComponentToPaint(mounted);
|
||||
|
||||
Reference in New Issue
Block a user