Fix flaky context filters tests (#21511)

This commit is contained in:
Jen Huang 2018-08-01 12:22:07 -07:00 committed by GitHub
parent 93f9251418
commit 4bd7b74e99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,9 +31,8 @@ export default function ({ getService, getPageObjects }) {
const filterBar = getService('filterBar');
const PageObjects = getPageObjects(['common', 'context']);
// Flaky: https://github.com/elastic/kibana/issues/16002
describe.skip('context filters', function contextSize() {
before(async function () {
describe('context filters', function contextSize() {
beforeEach(async function () {
await PageObjects.context.navigateTo(TEST_INDEX_PATTERN, TEST_ANCHOR_TYPE, TEST_ANCHOR_ID, {
columns: TEST_COLUMN_NAMES,
});
@ -64,7 +63,7 @@ export default function ({ getService, getPageObjects }) {
it('should be toggleable via the filter bar', async function () {
const table = await docTable.getTable();
await filterBar.addFilter(TEST_ANCHOR_FILTER_FIELD, 'IS', TEST_ANCHOR_FILTER_VALUE);
await filterBar.toggleFilterEnabled(TEST_ANCHOR_FILTER_FIELD);
await PageObjects.context.waitUntilContextLoadingHasFinished();