Timelion rescaling vertical bounds incorrectly on window resize (#123534)

* Timelion rescaling vertical bounds incorrectly on window resize

* Update test axis labels data as chart has another scale due to updated padding

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Diana Derevyankina 2022-01-24 16:46:15 +03:00 committed by GitHub
parent 650919cf0a
commit 6ee1e37a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ export const MAIN_GROUP_ID = 1;
export const withStaticPadding = (domain: AxisSpec['domain']): AxisSpec['domain'] =>
({
...domain,
padding: 50,
padding: 20,
paddingUnit: 'pixel',
} as unknown as AxisSpec['domain']);

View file

@ -171,7 +171,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
expect(firstAxesLabels).to.eql(['12.2GB', '12.21GB']);
expect(secondAxesLabels).to.eql(['5.59KB', '5.6KB']);
expect(thirdAxesLabels.toString()).to.be(
'BYTES_5721,BYTES_5722,BYTES_5723,BYTES_5724,BYTES_5725,BYTES_5726,BYTES_5727,BYTES_5728,BYTES_5729,BYTES_5730,BYTES_5731,BYTES_5732,BYTES_5733'
'BYTES_5722,BYTES_5723,BYTES_5724,BYTES_5725,BYTES_5726,BYTES_5727,BYTES_5728,BYTES_5729,BYTES_5730,BYTES_5731,BYTES_5732,BYTES_5733'
);
});