|
38 | 38 | databaseAlias: databaseName,
|
39 | 39 | redirect: 'workbench'
|
40 | 40 | };
|
41 |
| - |
42 | 41 | await t.navigateTo(generateLink(connectUrlParams));
|
43 | 42 | await t.expect(myRedisDatabasePage.AddRedisDatabase.disabledDatabaseInfo.nth(0).getAttribute('title')).contains(host, 'Wrong host value');
|
44 | 43 | await t.expect(myRedisDatabasePage.AddRedisDatabase.disabledDatabaseInfo.nth(1).getAttribute('title')).contains(port, 'Wrong port value');
|
|
52 | 51 | test
|
53 | 52 | .before(async() => {
|
54 | 53 | await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneRedisGears);
|
55 |
| - await browserPage.Cli.sendCommandInCli('acl DELUSER alice'); |
56 |
| - await browserPage.Cli.sendCommandInCli('ACL SETUSER alice on >p1pp0 +@all ~*'); |
| 54 | + await browserPage.Cli.sendCommandInCli('acl DELUSER alice&&'); |
| 55 | + await browserPage.Cli.sendCommandInCli('ACL SETUSER alice&& on >p1pp0@& +@all ~*'); |
57 | 56 | })
|
58 | 57 | .after(async t => {
|
59 | 58 | // Delete all existing connections
|
|
63 | 62 | await databaseAPIRequests.deleteAllDatabasesApi();
|
64 | 63 | })
|
65 | 64 | .page(commonUrl)('Add DB using url automatically', async t => {
|
66 |
| - databaseUsername = 'alice'; |
67 |
| - databasePassword = 'p1pp0'; |
| 65 | + databaseUsername = 'alice&&'; |
| 66 | + databasePassword = 'p1pp0@&'; |
| 67 | + const codedUrl = `redis://${databaseUsername}:${databasePassword}@${host}:${port}`; |
68 | 68 | const connectUrlParams = {
|
69 |
| - redisUrl: `redis://${databaseUsername}:${databasePassword}@${host}:${port}`, |
| 69 | + redisUrl: codedUrl, |
70 | 70 | databaseAlias: databaseName,
|
71 |
| - redirect: 'workbench?guidePath=/sq/introduction.md', |
| 71 | + redirect: 'workbench?tutorialId=ds-json-intro', |
72 | 72 | cloudBdbId: '1232',
|
73 | 73 | subscriptionType: 'fixed',
|
74 | 74 | planMemoryLimit: '30',
|
75 | 75 | memoryLimitMeasurementUnit: 'mb',
|
76 | 76 | free: 'true'
|
77 | 77 | };
|
78 |
| - |
| 78 | + console.log('!!!!'); |
| 79 | + console.log(generateLink(connectUrlParams)); |
79 | 80 | await t.navigateTo(generateLink(connectUrlParams));
|
80 | 81 | await t.wait(10_000);
|
81 | 82 | await t.expect(workbenchPage.submitCommandButton.exists).ok('Redirection to Workbench is not correct');
|
82 | 83 | const tab = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
|
83 | 84 | await t.expect(tab.preselectArea.textContent).contains('INTRODUCTION', 'the tutorial page is incorrect');
|
84 |
| - await t.expect(tab.preselectArea.textContent).contains('How To Query Your Data', 'the tutorial is incorrect'); |
| 85 | + await t.expect(tab.preselectArea.textContent).contains('JSON', 'the tutorial is incorrect'); |
85 | 86 |
|
86 | 87 | //Verify that the same db is not added
|
87 | 88 | await t.navigateTo(generateLink(connectUrlParams));
|
|
0 commit comments