Skip to content

Commit

Permalink
Fix gauge test (elastic#22472)
Browse files Browse the repository at this point in the history
  • Loading branch information
liza-mae authored and Liza Dayoub committed Aug 28, 2018
1 parent 8bd1b04 commit 8b127c2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/functional/apps/visualize/_tsvb_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import expect from 'expect.js';

export default function ({ getService, getPageObjects }) {
const log = getService('log');
const retry = getService('retry');
const PageObjects = getPageObjects(['common', 'visualize', 'header', 'settings', 'visualBuilder']);

describe('visual builder', function describeIndexTests() {
Expand Down Expand Up @@ -111,10 +112,12 @@ export default function ({ getService, getPageObjects }) {
});

it('should verify gauge label and count display', async function () {
const labelString = await PageObjects.visualBuilder.getGaugeLabel();
expect(labelString).to.be('Count');
const gaugeCount = await PageObjects.visualBuilder.getGaugeCount();
expect(gaugeCount).to.be('156');
await retry.try(async () => {
const labelString = await PageObjects.visualBuilder.getGaugeLabel();
expect(labelString).to.be('Count');
const gaugeCount = await PageObjects.visualBuilder.getGaugeCount();
expect(gaugeCount).to.be('156');
});
});
});

Expand Down

0 comments on commit 8b127c2

Please sign in to comment.