Skip to content

Commit 560210c

Browse files
authored
Merge pull request #3271 from RedisInsight/e2e/bugfix/nightly-fixes-for-links
nightly e2e fixes
2 parents 9d2d4d5 + b1de86a commit 560210c

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

tests/e2e/tests/web/critical-path/cli/cli-command-helper.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ test('Verify that user can type TS. in Command helper and see commands from Redi
9191
// Search per part of command and check all opened commands
9292
await browserPage.CommandHelper.checkSearchedCommandInCommandHelper(commandForSearch, timeSeriesCommands);
9393
// Check the first command documentation url
94-
await browserPage.CommandHelper.checkURLCommand(timeSeriesCommands[0], `https://redis.io/latest/commands/${timeSeriesCommands[0].toLowerCase()}/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper`);
94+
await browserPage.CommandHelper.checkURLCommand(timeSeriesCommands[0], `https://redis.io/docs/latest/commands/${timeSeriesCommands[0].toLowerCase()}/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper`);
9595
});
9696
// outdated after https://redislabs.atlassian.net/browse/RI-4608
9797
test.skip('Verify that user can type GRAPH. in Command helper and see auto-suggestions from RedisGraph commands.json', async t => {

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ test('Verify that user can see in Command helper and click on new group "JSON",
8181
filteringGroup = 'JSON';
8282
commandToCheck = 'JSON.SET';
8383
commandArgumentsToCheck = 'JSON.SET key path value [condition]';
84-
externalPageLink = 'https://redis.io/latest/commands/json.set/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper';
84+
externalPageLink = 'https://redis.io/docs/latest/commands/json.set/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper';
8585

8686
// Open Command Helper
8787
await t.click(browserPage.CommandHelper.expandCommandHelperButton);
@@ -99,7 +99,7 @@ test('Verify that user can see in Command helper and click on new group "Search"
9999
filteringGroup = 'Search';
100100
commandToCheck = 'FT.EXPLAIN';
101101
commandArgumentsToCheck = 'FT.EXPLAIN index query [dialect]';
102-
externalPageLink = 'https://redis.io/latest/commands/ft.explain/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper';
102+
externalPageLink = 'https://redis.io/docs/latest/commands/ft.explain/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper';
103103

104104
// Open Command Helper
105105
await t.click(browserPage.CommandHelper.expandCommandHelperButton);
@@ -210,11 +210,11 @@ test('Verify that user can work with Bloom groups in Command Helper (RedisBloom
210210
'CF.ADD key item'
211211
];
212212
externalPageLinks = [
213-
'https://redis.io/latest/commands/bf.mexists/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
214-
'https://redis.io/latest/commands/cms.query/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
215-
'https://redis.io/latest/commands/tdigest.reset/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
216-
'https://redis.io/latest/commands/topk.list/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
217-
'https://redis.io/latest/commands/cf.add/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper'
213+
'https://redis.io/docs/latest/commands/bf.mexists/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
214+
'https://redis.io/docs/latest/commands/cms.query/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
215+
'https://redis.io/docs/latest/commands/tdigest.reset/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
216+
'https://redis.io/docs/latest/commands/topk.list/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
217+
'https://redis.io/docs/latest/commands/cf.add/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper'
218218
];
219219

220220
// Open Command Helper

tests/e2e/tests/web/regression/tree-view/tree-view.e2e.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ import {
99
} from '../../../../helpers/conf';
1010
import { ExploreTabs, KeyTypesTexts, rte } from '../../../../helpers/constants';
1111
import { DatabaseAPIRequests } from '../../../../helpers/api/api-database';
12-
import { APIKeyRequests } from '../../../../helpers/api/api-keys';
1312
import { Common } from '../../../../helpers/common';
1413
import { verifyKeysDisplayingInTheList } from '../../../../helpers/keys';
1514

1615
const browserPage = new BrowserPage();
1716
const workbenchPage = new WorkbenchPage();
1817
const databaseHelper = new DatabaseHelper();
1918
const databaseAPIRequests = new DatabaseAPIRequests();
20-
const apiKeyRequests = new APIKeyRequests();
2119

2220
let keyNames: string[] = [];
2321

@@ -28,7 +26,7 @@ fixture `Tree view verifications`
2826
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneBigConfig);
2927
})
3028
.afterEach(async() => {
31-
// Delete database
29+
await browserPage.Cli.sendCommandInCli('flushdb');
3230
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneBigConfig);
3331
});
3432
test
@@ -37,7 +35,7 @@ test
3735
await browserPage.Cli.sendCommandInCli('flushdb');
3836
})
3937
.after(async() => {
40-
// Delete database
38+
await browserPage.Cli.sendCommandInCli('flushdb');
4139
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfigEmpty);
4240
await browserPage.Cli.sendCommandInCli('flushdb');
4341
})('Verify that user has load sample data button when there are no keys in the database', async t => {
@@ -150,10 +148,7 @@ test
150148
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfigEmpty);
151149
})
152150
.after(async() => {
153-
// Clear and delete database
154-
for(const name of keyNames) {
155-
await apiKeyRequests.deleteKeyByNameApi(name, ossStandaloneConfigEmpty.databaseName);
156-
}
151+
await browserPage.Cli.sendCommandInCli('flushdb');
157152
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfigEmpty);
158153
})('Verify that if there are keys without namespaces, they are displayed in the root directory after all folders by default in the Tree view', async t => {
159154
keyNames = [
@@ -241,4 +236,3 @@ test
241236
await browserPage.searchByKeyName(`${name}*`);
242237
await verifyKeysDisplayingInTheList([keyName1, keyName2], false);
243238
});
244-

0 commit comments

Comments
 (0)