Fix gauge test (#22472) (#22476)

This commit is contained in:
liza-mae 2018-08-29 12:03:59 -06:00 committed by GitHub
parent 921f791b44
commit 5bc6ac4d83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {
@ -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');
});
});
});