mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
fix: fix adhocpopovers tab animate. (#14478)
* fix popover * addd tabs default css * fix lint * fix tests * address comments * lint fix * fix test * lint
This commit is contained in:
committed by
GitHub
parent
2bd0b62902
commit
e4e23ea487
@@ -128,10 +128,10 @@ describe('DashboardBuilder', () => {
|
||||
expect(parentSize.find(Tabs.TabPane)).toHaveLength(2);
|
||||
});
|
||||
|
||||
it('should set animated=true on Tabs for perf', () => {
|
||||
it('should have default animated=true on Tabs for perf', () => {
|
||||
const wrapper = setup({ dashboardLayout: undoableDashboardLayoutWithTabs });
|
||||
const tabProps = wrapper.find(ParentSize).find(Tabs).props();
|
||||
expect(tabProps.animated).toEqual({ inkBar: true, tabPane: false });
|
||||
expect(tabProps.animated).toEqual(true);
|
||||
});
|
||||
|
||||
it('should render a TabPane and DashboardGrid for first Tab', () => {
|
||||
@@ -182,7 +182,7 @@ describe('DashboardBuilder', () => {
|
||||
dashboardLayout: undoableDashboardLayoutWithTabs,
|
||||
});
|
||||
|
||||
expect(wrapper.find(Tabs).prop('activeKey')).toBe(DASHBOARD_GRID_ID);
|
||||
expect(wrapper.find(Tabs).at(1).prop('activeKey')).toBe(DASHBOARD_GRID_ID);
|
||||
|
||||
wrapper
|
||||
.find('.dashboard-component-tabs .ant-tabs .ant-tabs-tab')
|
||||
|
||||
Reference in New Issue
Block a user