Skip to content

Commit

Permalink
[Lens] fix flaky metric test (#138585)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon authored Aug 12, 2022
1 parent a9a1828 commit 1b71ff9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x-pack/test/functional/apps/lens/group3/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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}`);
Expand All @@ -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');
Expand Down

0 comments on commit 1b71ff9

Please sign in to comment.