Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedhamed-ahmed committed Nov 11, 2024
1 parent 62c0e56 commit 31978dd
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/functional/apps/discover/esql/_esql_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -795,23 +795,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await discover.waitUntilSearchingHasFinished();
});

it('should choose breakdown field when selected from field stats', async () => {
await discover.selectTextBaseLang();
await header.waitUntilLoadingHasFinished();
await discover.waitUntilSearchingHasFinished();

const testQuery = 'from logstash-*';
await monacoEditor.setCodeEditorValue(testQuery);
await testSubjects.click('querySubmitButton');
await header.waitUntilLoadingHasFinished();
await discover.waitUntilSearchingHasFinished();

await unifiedFieldList.clickFieldListAddBreakdownField('extension');
await header.waitUntilLoadingHasFinished();
const list = await discover.getHistogramLegendList();
expect(list).to.eql(['css', 'gif', 'jpg', 'php', 'png']);
});

it('should choose breakdown field', async () => {
await discover.selectTextBaseLang();
await header.waitUntilLoadingHasFinished();
Expand Down Expand Up @@ -860,6 +843,23 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const list = await discover.getHistogramLegendList();
expect(list).to.eql(['css', 'gif', 'jpg', 'php', 'png']);
});

it('should choose breakdown field when selected from field stats', async () => {
await discover.selectTextBaseLang();
await header.waitUntilLoadingHasFinished();
await discover.waitUntilSearchingHasFinished();

const testQuery = 'from logstash-*';
await monacoEditor.setCodeEditorValue(testQuery);
await testSubjects.click('querySubmitButton');
await header.waitUntilLoadingHasFinished();
await discover.waitUntilSearchingHasFinished();

await unifiedFieldList.clickFieldListAddBreakdownField('extension');
await header.waitUntilLoadingHasFinished();
const list = await discover.getHistogramLegendList();
expect(list).to.eql(['css', 'gif', 'jpg', 'php', 'png']);
});
});
});
}

0 comments on commit 31978dd

Please sign in to comment.