Skip to content

Commit 968d14c

Browse files
committed
add timeout
1 parent 31cf805 commit 968d14c

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

tests/e2e/local.web.docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ services:
2727
'./upload-custom-plugins.sh',
2828
]
2929
command: [
30-
'./wait-for-it.sh', 'redis-enterprise:12000', '-s', '-t', '120',
30+
'./wait-for-it.sh', 'redis-enterprise:12000', '-s', '-t', '200',
3131
'--',
32-
'npx', 'yarn', 'test:chrome:ci'
32+
'npx', 'yarn', 'test:chrome:ci', '--app-init-delay', '5000'
3333
]
3434

3535
# Redisinsight API + UI build

tests/e2e/tests/critical-path/cli/cli-critical.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ test
9191
test
9292
.meta({ rte: rte.standalone })('Verify that when user enters in CLI RediSearch/JSON commands (FT.CREATE, FT.DROPINDEX/JSON.GET, JSON.DEL), he can see hints with arguments', async t => {
9393
const commandHints = [
94-
'index [ON HASH | JSON] [PREFIX count prefix [prefix ...]] [FILTER filter] [LANGUAGE default_lang] [LANGUAGE_FIELD lang_attribute] [SCORE default_score] [SCORE_FIELD score_attribute] [PAYLOAD_FIELD payload_attribute] [MAXTEXTFIELDS] [TEMPORARY seconds] [NOOFFSETS] [NOHL] [NOFIELDS] [NOFREQS] [STOPWORDS count [stopword [stopword ...]]] [SKIPINITIALSCAN] SCHEMA field_name [AS alias] TEXT | TAG | NUMERIC | GEO | VECTOR [WITHSUFFIXTRIE] [SORTABLE [UNF]] [NOINDEX] [field_name [AS alias] TEXT | TAG | NUMERIC | GEO | VECTOR [WITHSUFFIXTRIE] [SORTABLE [UNF]] [NOINDEX] ...]',
95-
'index [DD]',
96-
'key [INDENT indent] [NEWLINE newline] [SPACE space] [path [path ...]]',
94+
'index [data_type] [prefix] [filter] [default_lang] [lang_attribute] [default_score] [score_attribute] [payload_attribute] [maxtextfields] [seconds] [nooffsets] [nohl] [nofields] [nofreqs] [stopwords] [skipinitialscan] schema field [field ...]',
95+
'index [delete docs]',
96+
'key [indent] [newline] [space] [path [path ...]]',
9797
'key [path]'
9898
];
9999
const commands = [

tests/e2e/tests/critical-path/database/modules.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ test
3333
// Verify that user can see the following sorting order: Search, JSON, Graph, TimeSeries, Bloom, Gears, AI for modules
3434
const databaseLine = myRedisDatabasePage.dbNameList.withExactText(ossStandaloneRedisearch.databaseName).parent('tr');
3535
const moduleIcons = databaseLine.find('[data-testid^=Redi]');
36-
const numberOfIcons = await moduleIcons.count;
37-
for (let i = 0; i < numberOfIcons; i++) {
36+
const numberOfIcons = moduleIcons.count;
37+
for (let i = 0; i < await numberOfIcons; i++) {
3838
const moduleName = moduleIcons.nth(i).getAttribute('data-testid');
39-
await t.expect(await moduleName).eql(await moduleList[i].getAttribute('data-testid'), 'Correct icon not found');
39+
await t.expect(moduleName).eql(await moduleList[i].getAttribute('data-testid'), 'Correct icon not found');
4040
}
4141
//Minimize the window to check quantifier
4242
await t.resizeWindow(1000, 700);

tests/e2e/tests/regression/cli/cli-command-helper.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ test
8282
.meta({ env: env.web })('Verify that user can see in Command helper and click on new group "JSON", can choose it and see list of commands in the group', async t => {
8383
filteringGroup = 'JSON';
8484
commandToCheck = 'JSON.SET';
85-
commandArgumentsToCheck = 'JSON.SET key path value [NX | XX]';
85+
commandArgumentsToCheck = 'JSON.SET key path value [condition]';
8686
externalPageLink = 'https://redis.io/commands/json.set/';
8787

8888
// Open Command Helper
@@ -102,7 +102,7 @@ test
102102
.meta({ env: env.web })('Verify that user can see in Command helper and click on new group "Search", can choose it and see list of commands in the group', async t => {
103103
filteringGroup = 'Search';
104104
commandToCheck = 'FT.EXPLAIN';
105-
commandArgumentsToCheck = 'FT.EXPLAIN index query [DIALECT dialect]';
105+
commandArgumentsToCheck = 'FT.EXPLAIN index query [dialect]';
106106
externalPageLink = 'https://redis.io/commands/ft.explain/';
107107

108108
// Open Command Helper
@@ -216,7 +216,7 @@ test
216216
'BF.MEXISTS key item [item ...]',
217217
'CMS.QUERY key item [item ...]',
218218
'TDIGEST.RESET key',
219-
'TOPK.LIST key [WITHCOUNT]',
219+
'TOPK.LIST key [withcount]',
220220
'CF.ADD key item'
221221
];
222222
externalPageLinks = [

tests/e2e/web.runner.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import testcafe from 'testcafe';
3232
])
3333
.run({
3434
skipJsErrors: true,
35+
// skipUncaughtErrors: true,
3536
browserInitTimeout: 60000,
3637
selectorTimeout: 5000,
3738
assertionTimeout: 5000,

0 commit comments

Comments
 (0)