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
test('No reports/keys message and report tooltip',asynct=>{
38
-
constnoReportsMessage='No Reports foundRun "New Analysis" to generate first report';
39
-
constnoKeysMessage='No keys to displayUse Workbench Guides and Tutorials to quickly load data';
38
+
constnoReportsMessage='No Reports foundRun "New Analysis" to generate first report.';
39
+
constnoKeysMessage='No keys to displayUse Workbench Guides and Tutorials to quickly load the data.';
40
40
consttooltipText='Memory EfficiencyAnalyze up to 10K keys in your Redis database to get an overview of your data and memory efficiency recommendations.';
41
41
42
42
// Verify that user can see the “No reports found” message when report wasn't generated
@@ -45,8 +45,10 @@ test('No reports/keys message and report tooltip', async t => {
45
45
awaitt.click(memoryEfficiencyPage.newReportBtn);
46
46
awaitt.expect(memoryEfficiencyPage.noKeysText.textContent).eql(noKeysMessage,'No keys message not displayed or text is invalid');
47
47
// Verify that user can open workbench page from No keys to display message
})('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
+
constmessage='No keys to display.Use Workbench Guides and Tutorials to quickly load the data.';
33
33
//Verify the message
34
34
awaitt.click(browserPage.treeViewButton);
35
35
awaitt.expect(browserPage.keyListMessage.textContent).contains(message,'The message is displayed');
@@ -38,35 +38,35 @@ test
38
38
awaitt.expect(workbenchPage.expandArea.visible).ok('Workbench page is not opened');
39
39
});
40
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');
44
+
awaitt.expect(browserPage.scannedValue.visible).ok('The number of keys scanned is displayed on the Browser view');
45
+
awaitt.expect(browserPage.scanMoreButton.visible).ok('The scan more button is displayed on the Browser view');
46
+
//Verify the controls on the Tree view
47
+
awaitt.click(browserPage.treeViewButton);
48
+
awaitt.expect(browserPage.totalKeysNumber.visible).ok('The total number of keys is displayed on the Tree view');
49
+
awaitt.expect(browserPage.scannedValue.visible).ok('The number of keys scanned is displayed on the Tree view');
50
+
awaitt.expect(browserPage.scanMoreButton.visible).ok('The scan more button is displayed on the Tree view');
51
+
});
52
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=>{
53
-
//Open the first key in the tree view and remove
54
-
awaitt.click(browserPage.treeViewButton);
55
-
awaitt.expect(browserPage.treeViewDeviceFolder.visible).ok('The key folder is displayed',{timeout: 30000});
awaitt.expect(browserPage.treeViewDeviceFolder.nth(2).textContent).notEql(keyFolder,'The key folder is removed from the tree view');
64
+
awaitt.expect(browserPage.treeViewDeviceKyesCount.textContent).notEql(numberOfKeys,'The number of keys is recalculated');
65
+
});
66
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=>{
67
-
awaitt.click(browserPage.treeViewButton);
68
-
//Verify the default separator
69
-
awaitt.expect(browserPage.treeViewSeparator.textContent).eql(':','The “:” (colon) used as a default separator for namespaces');
70
-
//Verify the number of keys found
71
-
awaitt.expect(browserPage.treeViewKeysNumber.visible).ok('The user can see the number of keys');
72
-
});
67
+
awaitt.click(browserPage.treeViewButton);
68
+
//Verify the default separator
69
+
awaitt.expect(browserPage.treeViewSeparator.textContent).eql(':','The “:” (colon) used as a default separator for namespaces');
70
+
//Verify the number of keys found
71
+
awaitt.expect(browserPage.treeViewKeysNumber.visible).ok('The user can see the number of keys');
0 commit comments