mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
This commit is contained in:
parent
ac060f450e
commit
b8fcf06336
7 changed files with 7 additions and 1 deletions
|
@ -164,6 +164,7 @@ exports[`Table should render normally 1`] = `
|
|||
}
|
||||
pagination={
|
||||
Object {
|
||||
"initialPageSize": 10,
|
||||
"pageSizeOptions": Array [
|
||||
5,
|
||||
10,
|
||||
|
|
|
@ -62,6 +62,7 @@ export class Table extends PureComponent {
|
|||
const { indexPattern, items, editField } = this.props;
|
||||
|
||||
const pagination = {
|
||||
initialPageSize: 10,
|
||||
pageSizeOptions: [5, 10, 25, 50]
|
||||
};
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@ exports[`Table should render normally 1`] = `
|
|||
}
|
||||
pagination={
|
||||
Object {
|
||||
"initialPageSize": 10,
|
||||
"pageSizeOptions": Array [
|
||||
5,
|
||||
10,
|
||||
|
|
|
@ -80,6 +80,7 @@ export class Table extends PureComponent {
|
|||
}];
|
||||
|
||||
const pagination = {
|
||||
initialPageSize: 10,
|
||||
pageSizeOptions: [5, 10, 25, 50],
|
||||
};
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ exports[`Table should render normally 1`] = `
|
|||
loading={true}
|
||||
pagination={
|
||||
Object {
|
||||
"initialPageSize": 10,
|
||||
"pageSizeOptions": Array [
|
||||
5,
|
||||
10,
|
||||
|
|
|
@ -162,6 +162,7 @@ export class Table extends Component {
|
|||
const { items, isSaving } = this.props;
|
||||
const columns = this.getColumns();
|
||||
const pagination = {
|
||||
initialPageSize: 10,
|
||||
pageSizeOptions: [5, 10, 25, 50],
|
||||
};
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ export default function ({ getService, getPageObjects }) {
|
|||
});
|
||||
|
||||
describe('field list pagination', function () {
|
||||
const EXPECTED_DEFAULT_PAGE_SIZE = 5;
|
||||
const EXPECTED_DEFAULT_PAGE_SIZE = 10;
|
||||
const EXPECTED_FIELD_COUNT = 86;
|
||||
const EXPECTED_LAST_PAGE_COUNT = EXPECTED_FIELD_COUNT % EXPECTED_DEFAULT_PAGE_SIZE;
|
||||
const LAST_PAGE_NUMBER = Math.ceil(EXPECTED_FIELD_COUNT / EXPECTED_DEFAULT_PAGE_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue