You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/e2e/tests/critical-path/browser/filtering.e2e.ts
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -86,16 +86,22 @@ test
86
86
awaitt.expect(browserPage.multiSearchArea.find(browserPage.cssFilteringLabel).visible).notOk('The label of filtering type is removed');
87
87
awaitt.expect(browserPage.keysSummary.textContent).contains('Total','The filter is removed');
88
88
});
89
-
test('Verify that user can see filtering per key name starts when he press Enter or clicks the control to filter per key name',asynct=>{//Check filtering labes
})('Verify that user can see filtering per key name starts when he press Enter or clicks the control to filter per key name',asynct=>{//Check filtering labes
90
95
keyName=chance.word({length: 10});
91
-
awaitt.expect(browserPage.keyListTable.textContent).contains('No keys to display.','The filtering is not set');
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(cloudDatabaseConfig.databaseName).exists).ok('The existence of the database',{timeout: 5000});
.meta({rte: rte.standalone})('Verify that user can see total and current logical database number of keys (if there are any keys in other logical DBs)',asynct=>{
59
+
//Wait for Total Keys number refreshed
60
+
awaitt.expect(browserPage.overviewTotalKeys.withText(`${keysAmount+1}`).exists).ok('Total keys are not changed',{timeout: 10000});
61
+
awaitt.hover(workbenchPage.overviewTotalKeys);
62
+
//Verify that user can see total number of keys and number of keys in current logical database
63
+
awaitt.expect(browserPage.tooltip.visible).ok('Total keys tooltip not displayed');
.meta({rte: rte.standalone})('Verify that user can see total number of keys and not it current logical database (if there are no any keys in other logical DBs)',asynct=>{
awaitt.expect(myRedisDatabasePage.dbNameList.withExactText(cloudDatabaseConfig.databaseName).exists).ok('The existence of the database',{timeout: 5000});
})('Verify that user can see message "No keys to display." when there are no keys in the database',asynct=>{
32
+
constmessage='No keys to display.Use Workbench Guides and Tutorials to quickly load the data.'
32
33
//Verify the message
33
34
awaitt.click(browserPage.treeViewButton);
34
-
awaitt.expect(browserPage.keyListTable.textContent).contains('No keys to display.','The message is displayed');
35
+
awaitt.expect(browserPage.keyListMessage.textContent).contains(message,'The message is displayed');
36
+
// Verify that workbench opened by clicking on "Use Workbench Guides and Tutorials" link
37
+
awaitt.click(browserPage.workbenchLinkButton);
38
+
awaitt.expect(workbenchPage.expandArea.visible).ok('Workbench page is not opened');
35
39
});
36
-
test
37
-
.meta({rte: rte.standalone})('Verify that user can see the total number of keys, the number of keys scanned, the “Scan more” control displayed at the top of Tree view and Browser view',asynct=>{
40
+
test('Verify that user can see the total number of keys, the number of keys scanned, the “Scan more” control displayed at the top of Tree view and Browser view',asynct=>{
awaitt.expect(browserPage.totalKeysNumber.visible).ok('The total number of keys is displayed on the Browser view');
@@ -46,8 +49,7 @@ test
46
49
awaitt.expect(browserPage.scannedValue.visible).ok('The number of keys scanned is displayed on the Tree view');
47
50
awaitt.expect(browserPage.scanMoreButton.visible).ok('The scan more button is displayed on the Tree view');
48
51
});
49
-
test
50
-
.meta({rte: rte.standalone})('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',asynct=>{
52
+
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',asynct=>{
51
53
//Open the first key in the tree view and remove
52
54
awaitt.click(browserPage.treeViewButton);
53
55
awaitt.expect(browserPage.treeViewDeviceFolder.visible).ok('The key folder is displayed',{timeout: 30000});
@@ -61,8 +63,7 @@ test
61
63
awaitt.expect(browserPage.treeViewDeviceFolder.nth(2).textContent).notEql(keyFolder,'The key folder is removed from the tree view');
62
64
awaitt.expect(browserPage.treeViewDeviceKyesCount.textContent).notEql(numberOfKeys,'The number of keys is recalculated');
63
65
});
64
-
test
65
-
.meta({rte: rte.standalone})('Verify that user can see that “:” (colon) used as a default separator for namespaces and see the number of keys found per each namespace',asynct=>{
66
+
test('Verify that user can see that “:” (colon) used as a default separator for namespaces and see the number of keys found per each namespace',asynct=>{
66
67
awaitt.click(browserPage.treeViewButton);
67
68
//Verify the default separator
68
69
awaitt.expect(browserPage.treeViewSeparator.textContent).eql(':','The “:” (colon) used as a default separator for namespaces');
0 commit comments