Skip to content

Commit

Permalink
[functional/context] disable flaky test
Browse files Browse the repository at this point in the history
(cherry picked from commit 5d49d52)
  • Loading branch information
spalger committed Jan 11, 2018
1 parent 6a16610 commit e370b48
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions test/functional/apps/context/_filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,22 @@ export default function ({ getService, getPageObjects }) {
expect(hasOnlyFilteredRows).to.be(true);
});

it('should be toggleable via the filter bar', async function () {
const table = await docTable.getTable();

await filterBar.toggleFilterEnabled(TEST_ANCHOR_FILTER_FIELD);
await PageObjects.context.waitUntilContextLoadingHasFinished();

expect(await filterBar.hasFilter(TEST_ANCHOR_FILTER_FIELD, TEST_ANCHOR_FILTER_VALUE, false)).to.be(true);

const rows = await docTable.getBodyRows(table);
const hasOnlyFilteredRows = (
await Promise.all(rows.map(
async (row) => await (await docTable.getFields(row))[2].getVisibleText()
))
).every((fieldContent) => fieldContent === TEST_ANCHOR_FILTER_VALUE);
expect(hasOnlyFilteredRows).to.be(false);
});
// Flaky: https://github.com/elastic/kibana/issues/16002
// it('should be toggleable via the filter bar', async function () {
// const table = await docTable.getTable();
//
// await filterBar.toggleFilterEnabled(TEST_ANCHOR_FILTER_FIELD);
// await PageObjects.context.waitUntilContextLoadingHasFinished();
//
// expect(await filterBar.hasFilter(TEST_ANCHOR_FILTER_FIELD, TEST_ANCHOR_FILTER_VALUE, false)).to.be(true);
//
// const rows = await docTable.getBodyRows(table);
// const hasOnlyFilteredRows = (
// await Promise.all(rows.map(
// async (row) => await (await docTable.getFields(row))[2].getVisibleText()
// ))
// ).every((fieldContent) => fieldContent === TEST_ANCHOR_FILTER_VALUE);
// expect(hasOnlyFilteredRows).to.be(false);
// });
});
}

0 comments on commit e370b48

Please sign in to comment.