Skip to content

Commit cfd42bc

Browse files
authored
Merge pull request #2996 from RedisInsight/e2e/bugfix/fix_tutorials
fixes for e2e
2 parents c799472 + 4489e7f commit cfd42bc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
501 KB
Binary file not shown.
-452 KB
Binary file not shown.

tests/e2e/tests/web/critical-path/workbench/default-scripts-area.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fixture `Default scripts area at Workbench`
3737
await workbenchPage.sendCommandInWorkbench(`FT.DROPINDEX ${indexName} DD`);
3838
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneRedisearch);
3939
});
40-
test.only
40+
test
4141
.requestHooks(logger)('Verify that user can run automatically "FT._LIST" and "FT.INFO {index}" scripts in Workbench and see the results', async t => {
4242
indexName = 'idx:schools';
4343
keyName = chance.word({ length: 5 });

tests/e2e/tests/web/regression/insights/import-tutorials.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ test.after(async() => {
123123
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfig);
124124
})('Verify that user can upload tutorial with URL with manifest.json', async t => {
125125
const labelFromManifest = 'LabelFromManifest';
126-
const link = 'https://github.com/RedisInsight/RedisInsight/tree/main/tests/e2e/test-data/upload-tutorials/sample-manifest-link.zip';
126+
const link = 'https://github.com/RedisInsight/RedisInsight/blob/main/tests/e2e/test-data/upload-tutorials/TutorialsWithManifest.zip';
127127
internalLinkName1 = 'manifest-id';
128128
tutorialName = 'Tutorials with manifest';
129129
const summary = 'Summary for JSON';

tests/e2e/tests/web/regression/workbench/default-scripts-area.e2e.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test('Verify that user can see saved article in Enablement area when he leaves W
5050
await t.expect(tutorials.internalLinkWorkingWithHashes.visible).ok('The working with hashes link is not visible', { timeout: 5000 });
5151
// Open Working with Hashes section
5252
await t.click(tutorials.internalLinkWorkingWithHashes);
53-
let selector = tutorials.getRunSelector('Create');
53+
let selector = tutorials.getRunSelector('Create a hash');
5454

5555
// https://redislabs.atlassian.net/browse/RI-5340
5656
// Verify that user can see “Open Workbench in the left menu to see the command results.” tooltip when hovering over Run button
@@ -59,7 +59,7 @@ test('Verify that user can see saved article in Enablement area when he leaves W
5959

6060
// Check the button from Hash page is visible
6161
await tutorials.runBlockCode('Create a hash');
62-
let selector = await tutorials.getRunSelector('Create a hash');
62+
selector = tutorials.getRunSelector('Create a hash');
6363
await t.expect(selector.visible).ok('The end of the page is not visible');
6464

6565
// Verify that user can see the “success” icon during 5 s after a command has been run and button can't be clicked at that time
@@ -72,14 +72,14 @@ test('Verify that user can see saved article in Enablement area when he leaves W
7272
// Go back to Workbench page
7373
await t.click(myRedisDatabasePage.NavigationPanel.workbenchButton);
7474
// Verify that the same article is opened in Enablement area
75-
selector = await tutorials.getRunSelector('Create a hash');
75+
selector = tutorials.getRunSelector('Create a hash');
7676
await t.expect(selector.visible).ok('The end of the page is not visible');
7777
// Go to list of DBs page
7878
await t.click(myRedisDatabasePage.NavigationPanel.myRedisDBButton);
7979
// Go back to active DB again
8080
await myRedisDatabasePage.clickOnDBByName(ossStandaloneConfig.databaseName);
8181
// Check that user is on Workbench page and "Working with Hashes" page is displayed
82-
selector = await tutorials.getRunSelector('Create a hash');
82+
selector = tutorials.getRunSelector('Create a hash');
8383
await t.expect(selector.visible).ok('The end of the page is not visible');
8484
});
8585
//skipped due the issue RI-2384

0 commit comments

Comments
 (0)