* Fix table vis layout in split mode * Stick pagination at the bottom * Fix functional tests * Fix jest test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
2b47fc3a0c
commit
76ca536537
|
@ -18,6 +18,10 @@
|
|||
padding: $euiSizeS;
|
||||
margin-bottom: $euiSizeL;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 0 0;
|
||||
|
||||
> h3 {
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
@ -46,7 +46,6 @@ describe('TableVisualizationComponent', () => {
|
|||
);
|
||||
expect(useUiState).toHaveBeenLastCalledWith(handlers.uiState);
|
||||
expect(comp.find('.tbvChart__splitColumns').exists()).toBeFalsy();
|
||||
expect(comp.find('.tbvChart__split').exists()).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should render split table', () => {
|
||||
|
|
|
@ -48,14 +48,12 @@ const TableVisualizationComponent = ({
|
|||
<KibanaContextProvider services={core}>
|
||||
<div className={className} data-test-subj="tbvChart">
|
||||
{table ? (
|
||||
<div className="tbvChart__split">
|
||||
<TableVisBasic
|
||||
fireEvent={handlers.event}
|
||||
table={table}
|
||||
visConfig={visConfig}
|
||||
uiStateProps={uiStateProps}
|
||||
/>
|
||||
</div>
|
||||
<TableVisBasic
|
||||
fireEvent={handlers.event}
|
||||
table={table}
|
||||
visConfig={visConfig}
|
||||
uiStateProps={uiStateProps}
|
||||
/>
|
||||
) : (
|
||||
<TableVisSplit
|
||||
fireEvent={handlers.event}
|
||||
|
|
|
@ -381,6 +381,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await PageObjects.visualize.clickNewSearch();
|
||||
await PageObjects.timePicker.setDefaultAbsoluteRange();
|
||||
await PageObjects.visEditor.clickBucket('Split table');
|
||||
// split by column to make all tables rows visible
|
||||
await PageObjects.visEditor.clickSplitDirection('Columns');
|
||||
await PageObjects.visEditor.selectAggregation('Terms');
|
||||
await PageObjects.visEditor.selectField('extension.raw');
|
||||
await PageObjects.visEditor.setSize(2);
|
||||
|
|
Loading…
Reference in a new issue