mirror of
https://github.com/apache/superset.git
synced 2026-04-14 13:44:46 +00:00
fix(dashboard): Make the View Chart In Explore menu option a link (#15668)
* hey look, it's a real anchor tag! * get the explore chart url into the link * add doc comments to the functions * remove pointless test * update weird tests Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
committed by
GitHub
parent
5d86b8dde6
commit
985af72ac3
@@ -193,18 +193,6 @@ test('Should not show export full CSV if report is not table', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('Should "View chart in Explore"', () => {
|
||||
const props = createProps();
|
||||
render(<SliceHeaderControls {...props} />, { useRedux: true });
|
||||
|
||||
expect(props.exploreChart).toBeCalledTimes(0);
|
||||
userEvent.click(
|
||||
screen.getByRole('menuitem', { name: 'View chart in Explore' }),
|
||||
);
|
||||
expect(props.exploreChart).toBeCalledTimes(1);
|
||||
expect(props.exploreChart).toBeCalledWith(371);
|
||||
});
|
||||
|
||||
test('Should "Toggle chart description"', () => {
|
||||
const props = createProps();
|
||||
render(<SliceHeaderControls {...props} />, { useRedux: true });
|
||||
|
||||
Reference in New Issue
Block a user