Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discover] Unskip ES|QL Inspector tests #183894

Merged
merged 6 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions test/functional/apps/discover/group4/_esql_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,21 +257,32 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});

// FLAKY: https://github.com/elastic/kibana/issues/183847
describe.skip('inspector', () => {
describe('inspector', () => {
beforeEach(async () => {
await PageObjects.common.navigateToApp('discover');
await PageObjects.timePicker.setDefaultAbsoluteRange();
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
});

it('shows Discover and Lens requests in Inspector', async () => {
await PageObjects.discover.selectTextBaseLang();
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
await inspector.open();
const requestNames = await inspector.getRequestNames();
expect(requestNames).to.contain('Table');
expect(requestNames).to.contain('Visualization');
let retries = 0;
await retry.try(async () => {
if (retries > 0) {
await inspector.close();
await testSubjects.click('querySubmitButton');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
}
await inspector.open();
retries = retries + 1;
const requestNames = await inspector.getRequestNames();
expect(requestNames).to.contain('Table');
expect(requestNames).to.contain('Visualization');
});
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,28 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
beforeEach(async () => {
await PageObjects.common.navigateToApp('discover');
await PageObjects.timePicker.setDefaultAbsoluteRange();
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
});

it('shows Discover and Lens requests in Inspector', async () => {
await PageObjects.discover.selectTextBaseLang();
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
await inspector.open();
const requestNames = await inspector.getRequestNames();
expect(requestNames).to.contain('Table');
expect(requestNames).to.contain('Visualization');
let retries = 0;
await retry.try(async () => {
if (retries > 0) {
await inspector.close();
await testSubjects.click('querySubmitButton');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
}
await inspector.open();
retries = retries + 1;
const requestNames = await inspector.getRequestNames();
expect(requestNames).to.contain('Table');
expect(requestNames).to.contain('Visualization');
});
});
});

Expand Down