mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Visualize] Adds a functional test for partial rows (#130528)
This commit is contained in:
parent
db7237f15b
commit
c8ef57267e
1 changed files with 25 additions and 0 deletions
|
@ -93,6 +93,31 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
});
|
||||
|
||||
it('should show correct data when partial rows is on', async () => {
|
||||
const expectedChartData = [
|
||||
['0B', '2,088'],
|
||||
['1.953KB', '2,748'],
|
||||
['3.906KB', '2,707'],
|
||||
['5.859KB', '2,876'],
|
||||
['7.813KB', '2,863'],
|
||||
['9.766KB', '147'],
|
||||
['11.719KB', '148'],
|
||||
['13.672KB', '129'],
|
||||
['15.625KB', '161'],
|
||||
['17.578KB', '137'],
|
||||
];
|
||||
await PageObjects.visEditor.clickOptionsTab();
|
||||
await PageObjects.visEditor.checkSwitch('showPartialRows');
|
||||
await PageObjects.visEditor.clickGo();
|
||||
|
||||
return retry.try(async function () {
|
||||
await inspector.open();
|
||||
await inspector.expectTableData(expectedChartData);
|
||||
await inspector.close();
|
||||
await PageObjects.visEditor.uncheckSwitch('showPartialRows');
|
||||
});
|
||||
});
|
||||
|
||||
it('should show percentage columns', async () => {
|
||||
async function expectValidTableData() {
|
||||
const data = await PageObjects.visChart.getTableVisContent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue