mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
This commit is contained in:
parent
3f27bf1e44
commit
6a12882e4a
1 changed files with 6 additions and 4 deletions
|
@ -24,6 +24,7 @@ export default function({ getService, getPageObjects }) {
|
|||
const kibanaServer = getService('kibanaServer');
|
||||
const pieChart = getService('pieChart');
|
||||
const queryBar = getService('queryBar');
|
||||
const retry = getService('retry');
|
||||
const PageObjects = getPageObjects(['common', 'dashboard', 'discover']);
|
||||
|
||||
describe('dashboard query bar', () => {
|
||||
|
@ -41,10 +42,11 @@ export default function({ getService, getPageObjects }) {
|
|||
await esArchiver.unload('dashboard/current/data');
|
||||
|
||||
await queryBar.clickQuerySubmitButton();
|
||||
const headers = await PageObjects.discover.getColumnHeaders();
|
||||
expect(headers.length).to.be(0);
|
||||
|
||||
await pieChart.expectPieSliceCount(0);
|
||||
await retry.tryForTime(5000, async () => {
|
||||
const headers = await PageObjects.discover.getColumnHeaders();
|
||||
expect(headers.length).to.be(0);
|
||||
await pieChart.expectPieSliceCount(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue