mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* 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
cb068f651c
commit
298d8e9679
4 changed files with 12 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue