Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ test('Verify bulk upload of different text docs formats', async t => {

// Verify that user can remove uploaded file
await t.setFilesToUpload(browserPage.BulkActions.bulkUploadInput, [filePathes.bigDataFile]);
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// await t.expect(browserPage.BulkActions.bulkUploadContainer.textContent).contains(filesToUpload[1], 'Filename not displayed in upload input');

await t.expect(browserPage.BulkActions.bulkUploadContainer.textContent).contains(filesToUpload[1], 'Filename not displayed in upload input');
await t.click(browserPage.BulkActions.removeFileBtn);
await t.expect(browserPage.BulkActions.bulkUploadContainer.textContent).contains(defaultText, 'File not removed from upload input');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ test
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneV5Config);
})('No RediSearch module message', async t => {
const noRedisearchMessage = 'RediSearch is not available for this database';
// const externalPageLinkFirst = 'https://redis.io/try-free';
// const externalPageLinkSecond = '?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_browser_search'
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);
// Verify that user can see message in the dialog when he doesn't have RediSearch module
await t.expect(browserPage.noReadySearchDialogTitle.textContent).contains(noRedisearchMessage, 'Invalid text in no redisearch popover');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// // Verify that user can navigate by link to create a Redis db
// await t.click(browserPage.redisearchFreeLink);
// await Common.checkURLContainsText(externalPageLinkFirst);
// await Common.checkURLContainsText(externalPageLinkSecond);

// Verify that user can navigate by link to create a Redis db
await t.click(browserPage.redisearchFreeLink);
await Common.checkURLContainsText(externalPageLinkFirst);
await Common.checkURLContainsText(externalPageLinkSecond);
});
test
.before(async() => {
Expand All @@ -190,11 +190,11 @@ test
await t.click(browserPage.selectIndexDdn);
await t.click(browserPage.createIndexBtn);
await t.expect(browserPage.newIndexPanel.exists).ok('New Index panel is not displayed');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// // Verify that user can see a link to create a profound index and navigate
// await t.click(browserPage.newIndexPanel.find('a'));
// await Common.checkURL(createIndexLink);
// await goBackHistory();

// Verify that user can see a link to create a profound index and navigate
await t.click(browserPage.newIndexPanel.find('a'));
await Common.checkURL(createIndexLink);
await goBackHistory();

// Verify that user can create an index with multiple prefixes
// await t.click(browserPage.selectIndexDdn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +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
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// 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`);
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`);
});
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DatabaseAPIRequests } from '../../../../helpers/api/api-database';
import { sshPrivateKey, sshPrivateKeyWithPasscode } from '../../../../test-data/sshPrivateKeys';
import { Common } from '../../../../helpers/common';
import { BrowserActions } from '../../../../common-actions/browser-actions';
import { goBackHistory } from '../../../../helpers/utils';

const myRedisDatabasePage = new MyRedisDatabasePage();
const browserPage = new BrowserPage();
Expand Down Expand Up @@ -188,16 +189,15 @@ test
await databaseHelper.acceptLicenseTerms();
})('Verify that user can see the No databases message on the empty databases list', async t => {
const noDatabasesMessage = 'No databases yet, let\'s add one!';
// const externalPageLink = 'https://redis.io/try-free/?utm_source=redisinsight&utm_medium=main&utm_campaign=main'
const externalPageLink = 'https://redis.io/try-free?utm_source=redisinsight&utm_medium=main&utm_campaign=empty_db_list'

await t.expect(myRedisDatabasePage.emptyListMessage.withText(noDatabasesMessage).exists).ok('Empty databases list message not displayed');

await t.click(myRedisDatabasePage.addDbFromEmptyListBtn);
await t.expect(myRedisDatabasePage.AddRedisDatabase.testConnectionBtn.exists).ok('Add database form not opened');
await t.click(myRedisDatabasePage.AddRedisDatabase.cancelButton);

// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// await t.click(myRedisDatabasePage.emptyDbCloudBtn);
// await Common.checkURL(externalPageLink);
// await goBackHistory();
await t.click(myRedisDatabasePage.emptyDbCloudBtn);
await Common.checkURL(externalPageLink);
await goBackHistory();
});
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ test.before(async() => {
await t.click(myRedisDatabasePage.Modal.closeModalButton);
await t.click(myRedisDatabasePage.importDatabasesBtn);
await t.setFilesToUpload(myRedisDatabasePage.importDatabaseInput, [rdmData.path]);
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// await t.expect(myRedisDatabasePage.importDbDialog.textContent).contains(fileNames.rdmFullJson, 'Filename not displayed in import input');

await t.expect(myRedisDatabasePage.importDbDialog.textContent).contains(fileNames.rdmFullJson, 'Filename not displayed in import input');
// Click on remove button
await t.click(myRedisDatabasePage.removeImportedFileBtn);
await t.expect(myRedisDatabasePage.importDbDialog.textContent).contains(defaultText, 'File not removed from import input');
Expand Down
10 changes: 5 additions & 5 deletions tests/e2e/tests/web/regression/browser/survey-link.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ test('Verify that user can use survey link', async t => {
// Verify that user can see survey link on any page inside of DB
// Browser page
await t.expect(browserPage.userSurveyLink.visible).ok('Survey Link is not displayed');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// await t.click(browserPage.userSurveyLink);
// // Verify that when users click on RI survey, they are redirected to https://www.surveymonkey.com/r/redisinsight
// await Common.checkURL(externalPageLink);
// await goBackHistory();

await t.click(browserPage.userSurveyLink);
// Verify that when users click on RI survey, they are redirected to https://www.surveymonkey.com/r/redisinsight
await Common.checkURL(externalPageLink);
await goBackHistory();
// Workbench page
await t.click(myRedisDatabasePage.NavigationPanel.workbenchButton);
await t.expect(browserPage.userSurveyLink.visible).ok('Survey Link is not displayed');
Expand Down
46 changes: 23 additions & 23 deletions tests/e2e/tests/web/regression/cli/cli-command-helper.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ test('Verify that user can see in Command helper and click on new group "JSON",
await t.click(browserPage.CommandHelper.cliHelperOutputTitles.withExactText(commandToCheck));
// Verify results of opened command
await t.expect(browserPage.CommandHelper.cliHelperTitleArgs.textContent).eql(commandArgumentsToCheck, 'Selected command title not correct');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// // Click on Read More link for selected command
// await t.click(browserPage.CommandHelper.readMoreButton);
// // Check new opened window page with the correct URL
// await Common.checkURL(externalPageLink);

// Click on Read More link for selected command
await t.click(browserPage.CommandHelper.readMoreButton);
// Check new opened window page with the correct URL
await Common.checkURL(externalPageLink);
});
test('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 => {
filteringGroup = 'Search';
Expand All @@ -109,11 +109,11 @@ test('Verify that user can see in Command helper and click on new group "Search"
await t.click(browserPage.CommandHelper.cliHelperOutputTitles.withExactText(commandToCheck));
// Verify results of opened command
await t.expect(browserPage.CommandHelper.cliHelperTitleArgs.textContent).eql(commandArgumentsToCheck, 'Selected command title not correct');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// // Click on Read More link for selected command
// await t.click(browserPage.CommandHelper.readMoreButton);
// // Check new opened window page with the correct URL
// await Common.checkURL(externalPageLink);

// Click on Read More link for selected command
await t.click(browserPage.CommandHelper.readMoreButton);
// Check new opened window page with the correct URL
await Common.checkURL(externalPageLink);
});
test('Verify that user can see HyperLogLog title in Command Helper for this command group', async t => {
filteringGroup = 'HyperLogLog';
Expand All @@ -128,11 +128,11 @@ test('Verify that user can see HyperLogLog title in Command Helper for this comm
await t.click(browserPage.CommandHelper.cliHelperOutputTitles.withExactText(commandToCheck));
// Verify results of opened command
await t.expect(browserPage.CommandHelper.cliHelperTitleArgs.textContent).eql(commandArgumentsToCheck, 'Selected command title not correct');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// // Click on Read More link for selected command
// await t.click(browserPage.CommandHelper.readMoreButton);
// // Check new opened window page with the correct URL
// await Common.checkURL(externalPageLink);

// Click on Read More link for selected command
await t.click(browserPage.CommandHelper.readMoreButton);
// Check new opened window page with the correct URL
await Common.checkURL(externalPageLink);
});
test('Verify that user can see all separated groups for AI json file (model, tensor, inference, script)', async t => {
filteringGroups = ['Model', 'Script', 'Inference', 'Tensor'];
Expand Down Expand Up @@ -230,14 +230,14 @@ test('Verify that user can work with Bloom groups in Command Helper (RedisBloom
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');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// // Verify that user can use Read More link for Bloom, Cuckoo, CMS, TDigest, TopK groups in Command Helper (RedisBloom module).
// await t.click(browserPage.CommandHelper.readMoreButton);
// // Check new opened window page with the correct URL
// 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);

// Verify that user can use Read More link for Bloom, Cuckoo, CMS, TDigest, TopK groups in Command Helper (RedisBloom module).
await t.click(browserPage.CommandHelper.readMoreButton);
// Check new opened window page with the correct URL
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);
i++;
}
});
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/tests/web/regression/database/github.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ test('Verify that user can work with Github link in the application', async t =>
await t.expect(myRedisDatabasePage.NavigationPanel.githubButton.visible).ok('Github button');
// Verify that when user clicks on Github icon he redirects to the URL: https://github.com/RedisInsight/RedisInsight
await t.click(myRedisDatabasePage.NavigationPanel.githubButton);
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// await Common.checkURLContainsText('https://github.com/RedisInsight/RedisInsight');

await Common.checkURLContainsText('https://github.com/RedisInsight/RedisInsight');
});
12 changes: 6 additions & 6 deletions tests/e2e/tests/web/regression/shortcuts/shortcuts.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ test('Verify that user can see a summary of Shortcuts by clicking "Keyboard Shor
// Verify that user can close the Shortcuts
await t.click(myRedisDatabasePage.ShortcutsPanel.shortcutsCloseButton);
await t.expect(myRedisDatabasePage.ShortcutsPanel.shortcutsPanel.exists).notOk('Shortcuts panel is not displayed');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// // Click on the Release Notes in Help Center
// await t.click(myRedisDatabasePage.NavigationPanel.helpCenterButton);
// await t.click(myRedisDatabasePage.NavigationPanel.HelpCenter.helpCenterReleaseNotesButton);
// // Verify redirected link opening Release Notes in Help Center
// await Common.checkURL('https://github.com/RedisInsight/RedisInsight/releases');

// Click on the Release Notes in Help Center
await t.click(myRedisDatabasePage.NavigationPanel.helpCenterButton);
await t.click(myRedisDatabasePage.NavigationPanel.HelpCenter.helpCenterReleaseNotesButton);
// Verify redirected link opening Release Notes in Help Center
await Common.checkURL('https://github.com/RedisInsight/RedisInsight/releases');
});
test('Verify that user can see description of the “up” shortcut in the Help Center > Keyboard Shortcuts > Workbench table', async t => {
const description = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ test('Verify that user can see the text in settings for pipeline with link', asy

// Verify text in setting for pipeline
await t.expect(settingsPage.accordionWorkbenchSettings.textContent).contains(pipelineText, 'Text is incorrect');
// Unskip after updating testcafe with opening links support https://redislabs.atlassian.net/browse/RI-5565
// await t.click(settingsPage.pipelineLink);
// // Check new opened window page with the correct URL
// await Common.checkURL(externalPageLink);

await t.click(settingsPage.pipelineLink);
// Check new opened window page with the correct URL
await Common.checkURL(externalPageLink);
});
test.skip('Verify that only chosen in pipeline number of commands is loading at the same time in Workbench', async t => {
await settingsPage.changeCommandsInPipeline(pipelineValues[1]);
Expand Down
Loading