[Discover] Improve functional test of context (#57575) (#57654)

By converting adding filters to a sequential mode, the test of clicking on a context link in the discover table should no longer be flaky
This commit is contained in:
Matthias Wilhelm 2020-02-14 13:39:35 +01:00 committed by GitHub
parent 6f6cc356f9
commit 46bb78ec3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,12 +39,10 @@ export default function({ getService, getPageObjects }) {
await Promise.all(
TEST_COLUMN_NAMES.map(columnName => PageObjects.discover.clickFieldListItemAdd(columnName))
);
await Promise.all(
TEST_FILTER_COLUMN_NAMES.map(async ([columnName, value]) => {
await PageObjects.discover.clickFieldListItem(columnName);
await PageObjects.discover.clickFieldListPlusFilter(columnName, value);
})
);
for (const [columnName, value] of TEST_FILTER_COLUMN_NAMES) {
await PageObjects.discover.clickFieldListItem(columnName);
await PageObjects.discover.clickFieldListPlusFilter(columnName, value);
}
});
it('should open the context view with the selected document as anchor', async function() {