Skip to content

Commit

Permalink
[Lens] Functional test: Set lucene filter which actually matches data (
Browse files Browse the repository at this point in the history
…#128408)

* set lucene filter which actually matches data

* Update show_underlying_data.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
flash1293 and kibanamachine authored Mar 24, 2022
1 parent 2789f94 commit a6fa068
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x-pack/test/functional/apps/lens/show_underlying_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const find = getService('find');
const browser = getService('browser');

// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/128396
describe.skip('show underlying data', () => {
describe('show underlying data', () => {
it('should show the open button for a compatible saved visualization', async () => {
await PageObjects.visualize.gotoVisualizationLandingPage();
await listingTable.searchForItemWithName('lnsXYvis');
Expand Down Expand Up @@ -83,7 +82,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await testSubjects.click('indexPattern-filter-by-input > switchQueryLanguageButton');
// apparently setting a filter requires some time before and after typing to work properly
await PageObjects.common.sleep(1000);
await PageObjects.lens.setFilterBy('memory');
await PageObjects.lens.setFilterBy('memory:*');
await PageObjects.common.sleep(1000);

await PageObjects.lens.closeDimensionEditor();
Expand All @@ -98,7 +97,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await testSubjects.existOrFail('discoverChart');
// check the query
expect(await queryBar.getQueryString()).be.eql(
'( ( ip: "220.120.146.16" ) OR ( ip: "152.56.56.106" ) OR ( ip: "111.55.80.52" ) )'
'( ( ip: "86.252.46.140" ) OR ( ip: "155.34.86.215" ) OR ( ip: "133.198.170.210" ) )'
);
const filterPills = await filterBar.getFiltersLabel();
expect(filterPills.length).to.be(1);
Expand Down

0 comments on commit a6fa068

Please sign in to comment.