Skip to content

Commit 25dc827

Browse files
committed
updates by comments
1 parent c120cad commit 25dc827

File tree

5 files changed

+11
-29
lines changed

5 files changed

+11
-29
lines changed

tests/e2e/tests/regression/cli/cli-promote-workbench.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@ fixture `Promote workbench in CLI`
2121
// Delete database
2222
await deleteStandaloneDatabaseApi(ossStandaloneConfig);
2323
});
24-
// test('Verify that users can see workbench promotion message when they open CLI', async t => {
25-
// // Open CLI
26-
// await t.click(cliPage.cliExpandButton);
27-
// await t.expect(cliPage.workbenchLink.parent().textContent).eql('Try Workbench, our advanced CLI. Check out our Quick Guides to learn more about Redis capabilities.', 'Wrong promotion message');
28-
// // Verify that user is redirected to Workbench page clicking on workbench link in CLI
29-
// await t.click(cliPage.workbenchLink);
30-
// await t.expect(workbenchPage.expandArea.exists).ok('Workbench page is not opened');
31-
// // Verify that CLI panel is minimized after redirection to workbench from CLI
32-
// await t.expect(cliPage.cliPanel.visible).notOk('Closed CLI');
33-
// });
3424
test('Verify that user can see saved workbench context after redirection from CLI to workbench', async t => {
3525
// Open Workbench
3626
await t.click(myRedisDatabasePage.workbenchButton);

tests/e2e/tests/regression/database/redisstack.e2e.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { rte } from '../../../helpers/constants';
2-
import { acceptLicenseTermsAndAddDatabaseApi } from '../../../helpers/database';
2+
import { acceptLicenseTerms, acceptLicenseTermsAndAddDatabaseApi } from '../../../helpers/database';
33
import { MyRedisDatabasePage, DatabaseOverviewPage } from '../../../pageObjects';
44
import { commonUrl, ossStandaloneConfig } from '../../../helpers/conf';
5-
import { deleteStandaloneDatabaseApi } from '../../../helpers/api/api-database';
5+
import { addNewStandaloneDatabaseApi, deleteStandaloneDatabaseApi } from '../../../helpers/api/api-database';
66
import { Common } from '../../../helpers/common';
77

88
const myRedisDatabasePage = new MyRedisDatabasePage();
@@ -15,7 +15,8 @@ fixture `Redis Stack`
1515
.page(commonUrl)
1616
.beforeEach(async() => {
1717
// Add new databases using API
18-
await acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfig, ossStandaloneConfig.databaseName);
18+
await acceptLicenseTerms();
19+
await addNewStandaloneDatabaseApi(ossStandaloneConfig);
1920
// Reload Page
2021
await common.reloadPage();
2122
})

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ test
3535
await t.click(browserPage.treeViewButton);
3636
await t.expect(browserPage.keyListMessage.textContent).contains(message, 'The message is not displayed');
3737

38-
// Verify the default separator
39-
await t.expect(browserPage.treeViewSeparator.textContent).eql(':', 'The “:” (colon) not used as a default separator for namespaces');
40-
// Verify that user can see that “:” (colon) used as a default separator for namespaces and see the number of keys found per each namespace
41-
await t.expect(browserPage.treeViewKeysNumber.visible).ok('The user can not see the number of keys');
42-
4338
// Verify that workbench opened by clicking on "Use Workbench Guides and Tutorials" link
4439
await t.click(browserPage.workbenchLinkButton);
4540
await t.expect(workbenchPage.expandArea.visible).ok('Workbench page is not opened');
@@ -59,6 +54,12 @@ test('Verify that user can see the total number of keys, the number of keys scan
5954
test('Verify that when user deletes the key he can see the key is removed from the folder, the number of keys is reduced, the percentage is recalculated', async t => {
6055
// Open the first key in the tree view and remove
6156
await t.click(browserPage.treeViewButton);
57+
58+
// Verify the default separator
59+
await t.expect(browserPage.treeViewSeparator.textContent).eql(':', 'The “:” (colon) not used as a default separator for namespaces');
60+
// Verify that user can see that “:” (colon) used as a default separator for namespaces and see the number of keys found per each namespace
61+
await t.expect(browserPage.treeViewKeysNumber.visible).ok('The user can not see the number of keys');
62+
6263
await t.expect(browserPage.treeViewDeviceFolder.visible).ok('The key folder is not displayed', { timeout: 30000 });
6364
await t.click(browserPage.treeViewDeviceFolder);
6465
const numberOfKeys = await browserPage.treeViewDeviceKyesCount.textContent;

tests/e2e/tests/regression/workbench/autocomplete.e2e.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,6 @@ test('Verify that user can see static list of arguments is displayed when he ent
6262
// Verify that user can close the static list of arguments by pressing “ESC”
6363
await t.expect(workbenchPage.monacoHintWithArguments.visible).notOk('Hints with arguments are still displayed');
6464
});
65-
// test('Verify that user can close the static list of arguments by pressing “ESC”', async t => {
66-
// const command = 'TS.DELETERULE '
67-
// await t.typeText(workbenchPage.queryInput, command, { replace: true })
68-
// //Check that hint with arguments are displayed
69-
// await t.expect(workbenchPage.monacoHintWithArguments.visible).ok('Hints with arguments are not displayed')
70-
// //Remove hints with arguments
71-
// await t.pressKey('esc');
72-
// //Check no hints are displayed
73-
// await t.expect(workbenchPage.monacoHintWithArguments.visible).notOk('Hints with arguments are still displayed')
74-
// });
7565
test('Verify that user can see the static list of arguments when he uses “Ctrl+Shift+Space” combination for already entered command for Windows', async t => {
7666
const command = 'JSON.ARRAPPEND';
7767
await t.typeText(workbenchPage.queryInput, command, { replace: true });

tests/e2e/tests/regression/workbench/scripting-area.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ test
118118
// Check the result with sent command
119119
await t.expect(await workbenchPage.queryCardCommand.withExactText(command).exists).ok('The result of sent command is not displayed');
120120
});
121-
test.only('Verify that user can repeat commands by entering a number of repeats before the Redis command and see separate results per each command in Workbench', async t => {
121+
test('Verify that user can repeat commands by entering a number of repeats before the Redis command and see separate results per each command in Workbench', async t => {
122122
const command = 'FT._LIST';
123123
const command2 = 'select 13';
124124
const repeats = 5;

0 commit comments

Comments
 (0)