mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
feat(frontend): add ability to download dashboard and chart as image (#9819)
* feat(frontend): add ability to export dashboard and chart as image (#6973) * refactor: migrate download image as to typescript * feature(frontend): download as image updates add toast message if error occurs. make generate file stem an internal method. * refactor(frontend): move default background color to a const * feat(frontend): wrap download image toast in translate function
This commit is contained in:
@@ -66,9 +66,9 @@ describe('HeaderActionsDropdown', () => {
|
||||
expect(wrapper.find(SaveModal)).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('should render one MenuItem', () => {
|
||||
it('should render two MenuItems', () => {
|
||||
const wrapper = setup(overrideProps);
|
||||
expect(wrapper.find(MenuItem)).toHaveLength(1);
|
||||
expect(wrapper.find(MenuItem)).toHaveLength(2);
|
||||
});
|
||||
|
||||
it('should render the RefreshIntervalModal', () => {
|
||||
@@ -100,9 +100,9 @@ describe('HeaderActionsDropdown', () => {
|
||||
expect(wrapper.find(SaveModal)).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('should render two MenuItems', () => {
|
||||
it('should render three MenuItems', () => {
|
||||
const wrapper = setup(overrideProps);
|
||||
expect(wrapper.find(MenuItem)).toHaveLength(2);
|
||||
expect(wrapper.find(MenuItem)).toHaveLength(3);
|
||||
});
|
||||
|
||||
it('should render the RefreshIntervalModal', () => {
|
||||
|
||||
Reference in New Issue
Block a user