Skip to content

Commit 93687a0

Browse files
add ft.aggregate to top list
1 parent 2914484 commit 93687a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/e2e/tests/web/critical-path/workbench/search-and-query-autocomplete.e2e.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ test('Verify full commands suggestions with index and query for FT.AGGREGATE', a
8484
'students',
8585
'type'
8686
];
87-
const ftSortedCommands = ['FT.SEARCH', 'FT.CREATE', 'FT.EXPLAIN', 'FT.PROFILE'];
87+
const ftSortedCommands = ['FT.SEARCH', 'FT.AGGREGATE', 'FT.CREATE', 'FT.EXPLAIN', 'FT.PROFILE'];
8888

8989
// Verify basic commands suggestions FT.SEARCH and FT.AGGREGATE
9090
await t.typeText(workbenchPage.queryInput, 'FT', { replace: true });
9191
// Verify custom sorting for FT. commands
92-
await t.expect(await workbenchPage.MonacoEditor.getSuggestionsArrayFromMonaco(4)).eql(ftSortedCommands, 'Wrong order of FT commands');
92+
await t.expect(await workbenchPage.MonacoEditor.getSuggestionsArrayFromMonaco(5)).eql(ftSortedCommands, 'Wrong order of FT commands');
9393
// Verify that the list with FT.SEARCH and FT.AGGREGATE auto-suggestions is displayed
9494
await t.expect(workbenchPage.MonacoEditor.monacoSuggestion.withText('FT._LIST').exists).ok('FT._LIST auto-suggestions are not displayed');
9595
await t.expect(workbenchPage.MonacoEditor.monacoSuggestion.withText('FT.AGGREGATE').exists).ok('FT.AGGREGATE auto-suggestions are not displayed');
@@ -386,9 +386,9 @@ test.skip
386386
await t.typeText(workbenchPage.queryInput, 'field2_num', { replace: false });
387387
await t.pressKey('space');
388388
await t.expect(workbenchPage.MonacoEditor.monacoSuggestion.withExactText('NUMERIC').exists).ok('query can not be prolong');
389-
389+
390390
// Select NUMERIC keyword
391-
await t.typeText(workbenchPage.queryInput, 'so', { replace: false });
391+
await t.typeText(workbenchPage.queryInput, 'so', { replace: false });
392392
await t.pressKey('tab');
393393

394394
await t.expect((await workbenchPage.MonacoEditor.getTextFromMonaco()).trim()).eql(`FT.CREATE ${indexName3} FILTER filterNew SCHEMA field_name TEXT SORTABLE field2_num NUMERIC`);

0 commit comments

Comments
 (0)