Skip to content

Commit

Permalink
Change indexed fields table to use EuiToolTip and display 10 rows by …
Browse files Browse the repository at this point in the history
…default (#17074) (#17129)
  • Loading branch information
jen-huang authored Mar 14, 2018
1 parent ac060f4 commit b8fcf06
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ exports[`Table should render normally 1`] = `
}
pagination={
Object {
"initialPageSize": 10,
"pageSizeOptions": Array [
5,
10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class Table extends PureComponent {
const { indexPattern, items, editField } = this.props;

const pagination = {
initialPageSize: 10,
pageSizeOptions: [5, 10, 25, 50]
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ exports[`Table should render normally 1`] = `
}
pagination={
Object {
"initialPageSize": 10,
"pageSizeOptions": Array [
5,
10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class Table extends PureComponent {
}];

const pagination = {
initialPageSize: 10,
pageSizeOptions: [5, 10, 25, 50],
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ exports[`Table should render normally 1`] = `
loading={true}
pagination={
Object {
"initialPageSize": 10,
"pageSizeOptions": Array [
5,
10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8fcf06

Please sign in to comment.