Skip to content

Commit 400336c

Browse files
committed
e2e/feature/RI-6443_change_default_value
1 parent bde88e0 commit 400336c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
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]');

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ test
238238
const codedUrl = `redis://${username}:${password}@${host}:${port}`;
239239
await t
240240
.click(addDbDialog.addDatabaseButton);
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+
241245
await t.typeText(addDbDialog.urlInput, codedUrl);
242246
await t.click(addDbDialog.customSettingsButton);
243247
await t.expect(addDbDialog.databaseAliasInput.getAttribute('value')).eql(`${host}:${port}`, 'name is incorrected');

0 commit comments

Comments
 (0)