Skip to content

Commit

Permalink
Fix functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Dec 22, 2020
1 parent 61774d3 commit 5847ad9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ export function DiscoverGridFlyout({
columns={columns}
indexPattern={indexPattern}
filter={(mapping, value, mode) => {
onClose();
onFilter(mapping, value, mode);
onClose();
}}
onRemoveColumn={(columnName: string) => {
onClose();
onRemoveColumn(columnName);
onClose();
}}
onAddColumn={(columnName: string) => {
onClose();
onAddColumn(columnName);
onClose();
}}
/>
</EuiFlyoutBody>
Expand Down
4 changes: 3 additions & 1 deletion test/functional/apps/discover/_data_grid_doc_navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
expect(hasInclusiveFilter).to.be(true);

await dataGrid.removeInclusiveFilter(details, 'referer');
await dataGrid.clickRowToggle({ rowIndex: 0 });
const detailsExcluding = await dataGrid.getDetailsRow();
await dataGrid.removeInclusiveFilter(detailsExcluding, 'referer');
await PageObjects.discover.waitUntilSearchingHasFinished();
const hasExcludeFilter = await filterBar.hasFilter('referer', 'exists', true, false, false);
expect(hasExcludeFilter).to.be(true);
Expand Down

0 comments on commit 5847ad9

Please sign in to comment.