Skip to content

Commit

Permalink
[Discover] Unskip flaky esql columns test (elastic#187217)
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta authored Jul 4, 2024
1 parent cc6fc1b commit 18d2088
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/functional/apps/discover/esql/_esql_columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
defaultIndex: 'logstash-*',
};

// FLAKY: https://github.com/elastic/kibana/issues/186416
describe.skip('discover esql columns', async function () {
describe('discover esql columns', async function () {
before(async () => {
await kibanaServer.savedObjects.cleanStandardList();
await security.testUser.setRoles(['kibana_admin', 'test_logstash_reader']);
Expand Down Expand Up @@ -95,13 +94,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const columns = ['@timestamp', 'Document'];
expect(await dataGrid.getHeaderFields()).to.eql(columns);

await monacoEditor.setCodeEditorValue('from logstash-* | limit 1');
await monacoEditor.setCodeEditorValue('from logstash-* | limit 500');
await testSubjects.click('querySubmitButton');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
expect(await dataGrid.getHeaderFields()).to.eql(columns);

await monacoEditor.setCodeEditorValue('from logs* | limit 1');
await monacoEditor.setCodeEditorValue('from logs* | limit 500');
await testSubjects.click('querySubmitButton');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
Expand All @@ -113,7 +112,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(await dataGrid.getHeaderFields()).to.eql(['bytes']);

// different index pattern => reset columns
await monacoEditor.setCodeEditorValue('from logstash-* | limit 1');
await monacoEditor.setCodeEditorValue('from logstash-* | limit 500');
await testSubjects.click('querySubmitButton');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();
Expand Down

0 comments on commit 18d2088

Please sign in to comment.