Skip to content

Commit 8676153

Browse files
authored
Merge pull request #4205 from RedisInsight/e2e/feature/RI-6443_change-button-colors-and-default-value
e2e/feature/RI-6443_change_default_value
2 parents bde88e0 + a66d9d6 commit 8676153

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/e2e/pageObjects/dialogs/add-redis-database-dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class AddRedisDatabaseDialog {
3535
databaseAliasInput = Selector('[data-testid=name]');
3636
passwordInput = Selector('[data-testid=password]');
3737
usernameInput = Selector('[data-testid=username]');
38+
connectionUrlInput = Selector('[data-testid=connectionURL]');
3839
accessKeyInput = Selector('[data-testid=access-key]');
3940
secretKeyInput = Selector('[data-testid=secret-key]');
4041
databaseIndexInput = Selector('[data-testid=db]');
@@ -50,7 +51,6 @@ export class AddRedisDatabaseDialog {
5051
sshPrivateKeyInput = Selector('[data-testid=sshPrivateKey]');
5152
sshPassphraseInput = Selector('[data-testid=sshPassphrase]');
5253
timeoutInput = Selector('[data-testid=timeout]');
53-
urlInput = Selector('[data-testid=connection-url]');
5454
// DROPDOWNS
5555
caCertField = Selector('[data-testid=select-ca-cert]', { timeout: 500 });
5656
clientCertField = Selector('[data-testid=select-cert]', { timeout: 500 });

tests/e2e/tests/web/critical-path/database/connecting-to-the-db.e2e.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,11 @@ test
238238
const codedUrl = `redis://${username}:${password}@${host}:${port}`;
239239
await t
240240
.click(addDbDialog.addDatabaseButton);
241-
await t.typeText(addDbDialog.urlInput, codedUrl);
241+
242+
// Verify that 'redis://[email protected]:6379' default value prepopulated for connection URL field and the same for placeholder
243+
await t.expect(addDbDialog.connectionUrlInput.textContent).eql(`redis://[email protected]:6379`, 'Connection URL not prepopulated');
244+
245+
await t.typeText(addDbDialog.connectionUrlInput, codedUrl);
242246
await t.click(addDbDialog.customSettingsButton);
243247
await t.expect(addDbDialog.databaseAliasInput.getAttribute('value')).eql(`${host}:${port}`, 'name is incorrected');
244248
await t.expect(addDbDialog.hostInput.getAttribute('value')).eql(`${host}`, 'host is incorrected');

0 commit comments

Comments
 (0)