[Lens] fix flaky metric test (#138585)

This commit is contained in:
Andrew Tate 2022-08-12 11:59:16 -05:00 committed by GitHub
parent a9a1828a23
commit 1b71ff9e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,8 +59,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
}
};
// Failing: See https://github.com/elastic/kibana/issues/138295
describe.skip('lens metric', () => {
describe('lens metric', () => {
it('should render a metric', async () => {
await PageObjects.visualize.navigateToNewVisualization();
await PageObjects.visualize.clickVisType('lens');
@ -158,7 +157,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const title = '93.28.27.24';
await clickMetric(title);
retry.try(async () => {
await retry.try(async () => {
const labels = await filterBar.getFiltersLabel();
expect(labels.length).to.be(1);
expect(labels[0]).to.be(`ip: ${title}`);
@ -174,6 +173,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
const colorPicker = await testSubjects.find('euiColorPickerAnchor');
colorPicker.clearValue();
await colorPicker.type('#000000');
await PageObjects.lens.waitForVisualization('mtrVis');