|
50 | 50 | await cliPage.sendCommandInCli('SCRIPT FLUSH'); |
51 | 51 | await deleteStandaloneDatabaseApi(ossStandaloneBigConfig); |
52 | 52 | })('Recommendations displaying', async t => { |
53 | | - const luaScriptCodeChangesLabel = memoryEfficiencyPage.luaScriptAccordion.parent().find(memoryEfficiencyPage.cssCodeChangesLabel); |
54 | | - const luaScriptConfigurationChangesLabel = memoryEfficiencyPage.luaScriptAccordion.parent().find(memoryEfficiencyPage.cssConfigurationChangesLabel); |
| 53 | + const luaScriptCodeChangesLabel = memoryEfficiencyPage.luaScriptAccordion.parent(0).find(memoryEfficiencyPage.cssCodeChangesLabel); |
| 54 | + const luaScriptConfigurationChangesLabel = memoryEfficiencyPage.luaScriptAccordion.parent(0).find(memoryEfficiencyPage.cssConfigurationChangesLabel); |
55 | 55 |
|
56 | 56 | await t.click(memoryEfficiencyPage.newReportBtn); |
57 | 57 | // Verify that user can see Avoid dynamic Lua script recommendation when number_of_cached_scripts> 10 |
|
75 | 75 | await t.expect(memoryEfficiencyPage.luaScriptTextContainer.offsetHeight).eql(expandedTextContaiterSize, 'Lua script recommendation not expanded'); |
76 | 76 |
|
77 | 77 | // Verify that user can navigate by link to see the recommendation |
78 | | - await t.click(memoryEfficiencyPage.readMoreLink); |
| 78 | + await t.click(memoryEfficiencyPage.luaScriptTextContainer.find(memoryEfficiencyPage.cssReadMoreLink)); |
79 | 79 | await common.checkURL(externalPageLink); |
80 | 80 | // Close the window with external link to switch to the application window |
81 | 81 | await t.closeWindow(); |
82 | 82 | }); |
83 | | -test('No recommendations message', async t => { |
| 83 | + // skipped due to inability to receive no recommendations for now |
| 84 | +test.skip('No recommendations message', async t => { |
84 | 85 | keyName = `recomKey-${common.generateWord(10)}`; |
85 | | - const noRecommendationsMessage = 'No Recommendations at the moment.'; |
| 86 | + const noRecommendationsMessage = 'No recommendations at the moment, run a new report later to keep up the good work!'; |
86 | 87 | const command = `HSET ${keyName} field value`; |
87 | 88 |
|
88 | 89 | // Create Hash key and create report |
|
100 | 101 | await browserPage.addStringKey(stringKeyName, '2147476121', 'field'); |
101 | 102 | await t.click(myRedisDatabasePage.myRedisDBButton); |
102 | 103 | await addRedisDatabasePage.addLogicalRedisDatabase(ossStandaloneConfig, index); |
103 | | - await myRedisDatabasePage.clickOnDBByName(`${ossStandaloneConfig.databaseName} [${index}]`); |
| 104 | + await myRedisDatabasePage.clickOnDBByName(`${ossStandaloneConfig.databaseName} [db${index}]`); |
104 | 105 | await browserPage.addHashKey(keyName, '2147476121', 'field', 'value'); |
105 | 106 | }) |
106 | 107 | .after(async t => { |
|
0 commit comments