mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
[time table] add tooltip to sparkline (#3767)
* [time table] add tooltip to sparkline * [time table] open link in new tab * [time table] add back Mustache
This commit is contained in:
committed by
Grace Guo
parent
7fd9c82ae8
commit
7f3edad119
@@ -50,4 +50,13 @@ describe('MetricOption', () => {
|
||||
wrapper = shallow(factory(props));
|
||||
expect(wrapper.find(InfoTooltipWithTrigger)).to.have.length(1);
|
||||
});
|
||||
it('sets target="_blank" when openInNewWindow is true', () => {
|
||||
props.url = 'https://github.com/apache/incubator-superset';
|
||||
wrapper = shallow(factory(props));
|
||||
expect(wrapper.find('a').prop('target')).to.equal(null);
|
||||
|
||||
props.openInNewWindow = true;
|
||||
wrapper = shallow(factory(props));
|
||||
expect(wrapper.find('a').prop('target')).to.equal('_blank');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user