Skip to content

Commit d5d7d26

Browse files
fix for test
1 parent c0c9c43 commit d5d7d26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ test
3939
// Delete database
4040
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneRedisearch);
4141
})('Verify that user can see message "No keys to display." when there are no keys in the database', async t => {
42-
const message = 'No Keys to Display\\nCreate your first key to get started\nKeys are the foundation of Redis.\nCreate your first key or try our interactive Tutorials to learn how Redis can solve your use cases.\n+ Key\nor\nExplore';
43-
42+
const message = 'NoKeystoDisplayCreateyourfirstkeytogetstartedKeysarethefoundationofRedis.CreateyourfirstkeyortryourinteractiveTutorialstolearnhowRediscansolveyourusecases.+KeyorExplore';
43+
const actualMessage = await browserPage.keyListMessage.innerText;
44+
const cleanMessage = actualMessage.replace(/[\s\n]+/g, '');
4445
// Verify the message
4546
await t.click(browserPage.treeViewButton);
46-
await t.expect(browserPage.keyListMessage.innerText).contains(message, 'The message is not displayed');
47+
await t.expect(cleanMessage).contains(message, 'The message is not displayed');
4748
await t.expect(browserPage.guideLinksBtn.count).gte(5);
4849
await browserPage.clickGuideLinksByName('JSON');
4950
await t.expect(workbenchPage.queryInput.visible).ok('Workbench page is not opened');

0 commit comments

Comments
 (0)