Skip to content

Commit 49542c4

Browse files
authored
Merge pull request #2009 from RedisInsight/e2e/bugfix/fixes-for-failed
E2e/bugfix/fixes for failed
2 parents 31cf805 + cc7596a commit 49542c4

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed
-80 Bytes
Binary file not shown.

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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ test
3232
await t.expect(myRedisDatabasePage.moduleColumn.exists).ok('Module column not found');
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');
35+
await t.expect(databaseLine.visible).ok('Database not found in db list');
3536
const moduleIcons = databaseLine.find('[data-testid^=Redi]');
36-
const numberOfIcons = await moduleIcons.count;
37-
for (let i = 0; i < numberOfIcons; i++) {
37+
const numberOfIcons = moduleIcons.count;
38+
for (let i = 0; i < await numberOfIcons; i++) {
3839
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');
40+
await t.expect(moduleName).eql(await moduleList[i].getAttribute('data-testid'), `${moduleName} icon not found`);
4041
}
4142
//Minimize the window to check quantifier
4243
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/tests/regression/workbench/import-tutorials.e2e.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ https://redislabs.atlassian.net/browse/RI-4302, https://redislabs.atlassian.net/
3333
*/
3434
test('Verify that user can upload tutorial with local zip file without manifest.json', async t => {
3535
// Verify that user can upload custom tutorials on docker version
36-
const imageExternalPath = 'RedisInsight screen external';
37-
// const imageRelativePath = 'RedisInsight screen relative';
3836
folder1 = 'folder-1';
3937
folder2 = 'folder-2';
4038
internalLinkName1 = 'probably-1';
@@ -64,14 +62,15 @@ test('Verify that user can upload tutorial with local zip file without manifest.
6462
await t.click((await workbenchPage.getInternalLinkWithManifest(internalLinkName1)));
6563
await t.expect(workbenchPage.scrolledEnablementArea.visible).ok('enablement area is not visible after clicked');
6664

65+
// Error when github upload .zip with relative path in .md
66+
// const imageExternalPath = 'RedisInsight screen external';
67+
// const imageRelativePath = 'RedisInsight screen relative';
6768
// Verify that user can see image in custom tutorials by providing absolute external path in md file
68-
const imageExternal = await workbenchPage.getTutorialImageByAlt(imageExternalPath);
69-
await workbenchPage.waitUntilImageRendered(imageExternal);
70-
const imageExternalHeight = await imageExternal.getStyleProperty('height');
71-
await t.expect(parseInt(imageExternalHeight.replace(/[^\d]/g, ''))).gte(150);
72-
69+
// const imageExternal = await workbenchPage.getTutorialImageByAlt(imageExternalPath);
70+
// await workbenchPage.waitUntilImageRendered(imageExternal);
71+
// const imageExternalHeight = await imageExternal.getStyleProperty('height');
72+
// await t.expect(parseInt(imageExternalHeight.replace(/[^\d]/g, ''))).gte(150);
7373
// Verify that user can see image in custom tutorials by providing relative path in md file
74-
// Error when github upload .zip with relative path in .md
7574
// const imageRelative = await workbenchPage.getTutorialImageByAlt(imageRelativePath);
7675
// await workbenchPage.waitUntilImageRendered(imageRelative);
7776
// const imageRelativeHeight = await imageRelative.getStyleProperty('height');

tests/e2e/wait-for-it.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ wait_for()
4444
echoerr "$WAITFORIT_cmdname: $WAITFORIT_HOST:$WAITFORIT_PORT is available after $((WAITFORIT_end_ts - WAITFORIT_start_ts)) seconds"
4545
break
4646
fi
47-
sleep 1
47+
sleep 30
4848
done
4949
return $WAITFORIT_result
5050
}

0 commit comments

Comments
 (0)