|
5 | 5 | ossStandaloneBigConfig,
|
6 | 6 | ossStandaloneConfig,
|
7 | 7 | ossStandaloneConfigEmpty,
|
8 |
| - ossStandaloneRedisearch, ossStandaloneRedisGears |
| 8 | + ossStandaloneRedisGears |
9 | 9 | } from '../../../../helpers/conf';
|
10 | 10 | import { ExploreTabs, KeyTypesTexts, rte } from '../../../../helpers/constants';
|
11 | 11 | import { DatabaseAPIRequests } from '../../../../helpers/api/api-database';
|
@@ -34,10 +34,12 @@ fixture `Tree view verifications`
|
34 | 34 | test
|
35 | 35 | .before(async() => {
|
36 | 36 | await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfigEmpty);
|
| 37 | + await browserPage.Cli.sendCommandInCli('flushdb'); |
37 | 38 | })
|
38 | 39 | .after(async() => {
|
39 | 40 | // Delete database
|
40 | 41 | await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfigEmpty);
|
| 42 | + await browserPage.Cli.sendCommandInCli('flushdb'); |
41 | 43 | })('Verify that user has load sample data button when there are no keys in the database', async t => {
|
42 | 44 | const message = 'Let\'sstartworkingLoadsampledata+Addkeymanually';
|
43 | 45 | const actualMessage = await browserPage.keyListMessage.innerText;
|
|
63 | 65 | tutorial: 'Probabilistic'
|
64 | 66 | }];
|
65 | 67 |
|
| 68 | + await t.click(browserPage.refreshKeysButton); |
66 | 69 | await t.expect(browserPage.guideLinksBtn.count).gte(5);
|
67 | 70 | for (const capability of capabilities) {
|
68 | 71 | await browserPage.clickGuideLinksByName(capability.name);
|
|
79 | 82 | // Verify that user can see the same tutorial opened as on the list of databases when clicking on capabilities
|
80 | 83 | await t.click(browserPage.loadSampleDataBtn);
|
81 | 84 | await t.click(browserPage.executeBulkKeyLoadBtn);
|
82 |
| - await t.expect(browserPage.Toast.toastCloseButton.exists).ok('the info message after upload does not appear'); |
| 85 | + await t.expect(browserPage.Toast.toastBody.textContent).contains('0Errors', 'the info message after upload does not appear'); |
83 | 86 | const totalKeysValue = Number(await browserPage.totalKeysNumber.textContent);
|
84 |
| - // the number should be updated after real prod data will bw load |
85 |
| - await t.expect(totalKeysValue).eql(2, 'the info message after upload does not appear'); |
| 87 | + // the number should be updated after real prod data will be loaded |
| 88 | + await t.expect(totalKeysValue).gte(100, 'the info message after upload does not appear'); |
86 | 89 | });
|
87 | 90 |
|
88 | 91 | test
|
|
96 | 99 | await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneRedisGears);
|
97 | 100 | })('Verify that user can load sample data if database does not have modules', async t => {
|
98 | 101 | // Verify the message
|
99 |
| - await t.click(browserPage.treeViewButton); |
| 102 | + await t.click(browserPage.refreshKeysButton); |
100 | 103 | await t.click(browserPage.loadSampleDataBtn);
|
101 | 104 | await t.click(browserPage.executeBulkKeyLoadBtn);
|
102 | 105 | //verify that there is no errors if some modules are not added
|
103 | 106 | await t.expect(browserPage.Toast.toastBody.textContent).contains('0Errors', 'the info message after upload does not appear');
|
104 | 107 | const totalKeysValue = Number(await browserPage.totalKeysNumber.textContent);
|
105 | 108 | // the number should be updated after real prod data will bw load
|
106 |
| - await t.expect(totalKeysValue).eql(1, 'the info message after upload does not appear'); |
| 109 | + await t.expect(totalKeysValue).gte(10, 'the info message after upload does not appear'); |
107 | 110 | });
|
108 | 111 |
|
109 | 112 | 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', async t => {
|
|
0 commit comments