Skip to content

Commit b1de86a

Browse files
committed
nightly e2e fixes
1 parent 9b96e9c commit b1de86a

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
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: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@ import {
55
ossStandaloneBigConfig,
66
ossStandaloneConfig,
77
ossStandaloneConfigEmpty,
8-
ossStandaloneRedisearch, ossStandaloneRedisGears
8+
ossStandaloneRedisGears
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,15 +26,15 @@ 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
3533
.before(async() => {
3634
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfigEmpty);
3735
})
3836
.after(async() => {
39-
// Delete database
37+
await browserPage.Cli.sendCommandInCli('flushdb');
4038
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfigEmpty);
4139
})('Verify that user has load sample data button when there are no keys in the database', async t => {
4240
const message = 'Let\'sstartworkingLoadsampledata+Addkeymanually';
@@ -147,10 +145,7 @@ test
147145
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfigEmpty);
148146
})
149147
.after(async() => {
150-
// Clear and delete database
151-
for(const name of keyNames) {
152-
await apiKeyRequests.deleteKeyByNameApi(name, ossStandaloneConfigEmpty.databaseName);
153-
}
148+
await browserPage.Cli.sendCommandInCli('flushdb');
154149
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfigEmpty);
155150
})('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 => {
156151
keyNames = [
@@ -238,4 +233,3 @@ test
238233
await browserPage.searchByKeyName(`${name}*`);
239234
await verifyKeysDisplayingInTheList([keyName1, keyName2], false);
240235
});
241-

0 commit comments

Comments
 (0)