Skip to content
Merged

fixee2e #3253

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/pageObjects/components/explore-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class ExploreTab {
async waitUntilImageRendered(selector: Selector): Promise<void> {
const searchTimeout = 5 * 1000; // 5 sec maximum wait
const startTime = Date.now();
let imageHeight = await selector.getStyleProperty('height');
let imageHeight;

do {
imageHeight = await selector.getStyleProperty('height');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ test
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneV5Config);
})('No RediSearch module message', async t => {
const noRedisearchMessage = 'RediSearch is not available for this database';
const externalPageLinkFirst = 'https://redis.com/try-free';
const externalPageLinkFirst = 'https://redis.io/try-free';
const externalPageLinkSecond = '?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_browser_search'

await t.click(browserPage.redisearchModeBtn);
Expand All @@ -174,7 +174,7 @@ test
await browserPage.Cli.sendCommandInCli(`FT.DROPINDEX ${indexName}`);
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneBigConfig);
})('Index creation', async t => {
const createIndexLink = 'https://redis.io/commands/ft.create/';
const createIndexLink = 'https://redis.io/docs/latest/commands/ft.create/?utm_source=redisinsight&utm_medium=app&utm_campaign=browser_search';

// Verify that user can cancel index creation
await t.click(browserPage.redisearchModeBtn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ test('Verify that user can type TS. in Command helper and see commands from Redi
// Search per part of command and check all opened commands
await browserPage.CommandHelper.checkSearchedCommandInCommandHelper(commandForSearch, timeSeriesCommands);
// Check the first command documentation url
await browserPage.CommandHelper.checkURLCommand(timeSeriesCommands[0], `https://redis.io/commands/${timeSeriesCommands[0].toLowerCase()}/`);
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`);
});
// outdated after https://redislabs.atlassian.net/browse/RI-4608
test.skip('Verify that user can type GRAPH. in Command helper and see auto-suggestions from RedisGraph commands.json', async t => {
Expand Down
44 changes: 23 additions & 21 deletions tests/e2e/tests/web/regression/cli/cli-command-helper.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ test('Verify that user can see in Command helper and click on new group "JSON",
filteringGroup = 'JSON';
commandToCheck = 'JSON.SET';
commandArgumentsToCheck = 'JSON.SET key path value [condition]';
externalPageLink = 'https://redis.io/commands/json.set/';
externalPageLink = 'https://redis.io/latest/commands/json.set/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper';

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

// Open Command Helper
await t.click(browserPage.CommandHelper.expandCommandHelperButton);
Expand All @@ -117,7 +117,7 @@ test('Verify that user can see HyperLogLog title in Command Helper for this comm
filteringGroup = 'HyperLogLog';
commandToCheck = 'PFCOUNT';
commandArgumentsToCheck = 'PFCOUNT key [key ...]';
externalPageLink = 'https://redis.io/commands/pfcount/';
externalPageLink = 'https://redis.io/docs/latest/commands/pfcount/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper';

// Open Command Helper
await t.click(browserPage.CommandHelper.expandCommandHelperButton);
Expand Down Expand Up @@ -145,12 +145,12 @@ test('Verify that user can see all separated groups for AI json file (model, ten
'AI.SCRIPTEXECUTE key function [KEYS key_count key [key ...]] [INPUTS input_count input [input ...]] [ARGS arg_count arg [arg ...]] [OUTPUTS output_count output [output ...]] [TIMEOUT timeout]',
'AI.TENSORSET key FLOAT|DOUBLE|INT8|INT16|INT32|INT64|UINT8|UINT16|STRING|BOOL shape [shape ...] [BLOB blob] [VALUES value [VALUES value ...]]'
];
externalPageLinks = [
'https://redis.io/commands/ai.modeldel',
'https://redis.io/commands/ai.scriptstore',
'https://redis.io/commands/ai.scriptexecute',
'https://redis.io/commands/ai.tensorset'
];
// externalPageLinks = [
// 'https://redis.io/commands/ai.modeldel',
// 'https://redis.io/commands/ai.scriptstore',
// 'https://redis.io/commands/ai.scriptexecute',
// 'https://redis.io/commands/ai.tensorset'
// ];

// Open Command Helper
await t.click(browserPage.CommandHelper.expandCommandHelperButton);
Expand All @@ -162,21 +162,22 @@ test('Verify that user can see all separated groups for AI json file (model, ten
await t.click(browserPage.CommandHelper.cliHelperOutputTitles.withExactText(commandsToCheck[i]));
// Verify results of opened command
await t.expect(browserPage.CommandHelper.cliHelperTitleArgs.textContent).eql(commandsArgumentsToCheck[i], 'Selected command title not correct');
// Currently these links are deleted from redis.io
// Click on Read More link for selected command
await t.click(browserPage.CommandHelper.readMoreButton);
// await t.click(browserPage.CommandHelper.readMoreButton);
// Check new opened window page with the correct URL
await Common.checkURL(externalPageLinks[i]);
// await Common.checkURL(externalPageLinks[i]);
// Close the window with external link to switch to the application window
await goBackHistory();
await t.click(browserPage.CommandHelper.expandCommandHelperButton);
// await goBackHistory();
// await t.click(browserPage.CommandHelper.expandCommandHelperButton);
i++;
}
});
test('Verify that user can work with Gears group in Command Helper (RedisGears module)', async t => {
filteringGroup = 'Gears';
commandToCheck = 'RG.GETEXECUTION';
commandArgumentsToCheck = 'RG.GETEXECUTION id [SHARD|CLUSTER]';
externalPageLink = 'https://redis.io/commands/rg.getexecution';
// externalPageLink = 'https://redis.io/commands/rg.getexecution';

// Open Command Helper
await t.click(browserPage.CommandHelper.expandCommandHelperButton);
Expand All @@ -187,9 +188,10 @@ test('Verify that user can work with Gears group in Command Helper (RedisGears m
// Verify results of opened command
await t.expect(browserPage.CommandHelper.cliHelperTitleArgs.textContent).eql(commandArgumentsToCheck, 'Selected command title not correct');
// Verify that user can use Read More link for Gears group in Command Helper (RedisGears module)
await t.click(browserPage.CommandHelper.readMoreButton);
// Currently these links are deleted from redis.io
// await t.click(browserPage.CommandHelper.readMoreButton);
// Check new opened window page with the correct URL
await Common.checkURL(externalPageLink);
// await Common.checkURL(externalPageLink);
});
test('Verify that user can work with Bloom groups in Command Helper (RedisBloom module)', async t => {
filteringGroups = ['Bloom Filter', 'CMS', 'TDigest', 'TopK', 'Cuckoo Filter'];
Expand All @@ -208,11 +210,11 @@ test('Verify that user can work with Bloom groups in Command Helper (RedisBloom
'CF.ADD key item'
];
externalPageLinks = [
'https://redis.io/commands/bf.mexists/',
'https://redis.io/commands/cms.query/',
'https://redis.io/commands/tdigest.reset/',
'https://redis.io/commands/topk.list/',
'https://redis.io/commands/cf.add/'
'https://redis.io/latest/commands/bf.mexists/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
'https://redis.io/latest/commands/cms.query/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
'https://redis.io/latest/commands/tdigest.reset/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
'https://redis.io/latest/commands/topk.list/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper',
'https://redis.io/latest/commands/cf.add/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_command_helper'
];

// Open Command Helper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test
})('Verify that user can upload tutorial with local zip file without manifest.json', async t => {
// Verify that user can upload custom tutorials on docker version
internalLinkName1 = 'probably-1';
const imageExternalPath = 'RedisInsight screen external';
const imageExternalPath = 'Redis Insight screen external';

// Verify that user can see the “MY TUTORIALS” section in the Enablement area.
await workbenchPage.InsightsPanel.togglePanel(true);
Expand Down
6 changes: 4 additions & 2 deletions tests/e2e/tests/web/regression/tree-view/tree-view.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ fixture `Tree view verifications`
});
test
.before(async() => {
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneRedisearch);
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfigEmpty);
})
.after(async() => {
// Delete database
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneRedisearch);
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfigEmpty);
})('Verify that user has load sample data button when there are no keys in the database', async t => {
const message = 'Let\'sstartworkingLoadsampledata+Addkeymanually';
const actualMessage = await browserPage.keyListMessage.innerText;
Expand Down Expand Up @@ -88,9 +88,11 @@ test
test
.before(async() => {
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneRedisGears);
await browserPage.Cli.sendCommandInCli('flushdb');
})
.after(async() => {
// Delete database
await browserPage.Cli.sendCommandInCli('flushdb');
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneRedisGears);
})('Verify that user can load sample data if database does not have modules', async t => {
// Verify the message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const settingsPage = new SettingsPage();
const databaseHelper = new DatabaseHelper();
const databaseAPIRequests = new DatabaseAPIRequests();

const externalPageLink = 'https://redis.io/docs/manual/pipelining/';
const externalPageLink = 'https://redis.io/docs/latest/develop/use/pipelining/';
const pipelineValues = ['-5', '5', '4', '20'];
const commandForSend = '100 scan 0 match * count 5000';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ const databaseAPIRequests = new DatabaseAPIRequests();
const welcomePage = new WelcomePage();

const getPageUrl = ClientFunction(() => window.location.href);
const linuxPage = 'https://redis.io/docs/install/install-stack/linux/?utm_source=redisinsight&utm_medium=main&utm_campaign=linux';
const dockerPage = 'https://redis.io/docs/install/install-stack/docker/?utm_source=redisinsight&utm_medium=main&utm_campaign=docker';
const homebrewPage = 'https://redis.io/docs/install/install-stack/mac-os/?utm_source=redisinsight&utm_medium=main&utm_campaign=homebrew';
const promoPage = 'https://redis.com/try-free/?utm_source=redisinsight&utm_medium=main&utm_campaign=main';
const linuxPage = 'https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/linux/?utm_source=redisinsight&utm_medium=main&utm_campaign=linux';
const dockerPage = 'https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/?utm_source=redisinsight&utm_medium=main&utm_campaign=docker';
const homebrewPage = 'https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/mac-os/?utm_source=redisinsight&utm_medium=main&utm_campaign=homebrew';
const promoPage = 'https://redis.io/try-free/?utm_source=redisinsight&utm_medium=main&utm_campaign=main';

fixture `Add database from welcome page`
.meta({ type: 'smoke', rte: rte.standalone })
Expand Down