Skip to content

Commit 7155fd2

Browse files
committed
test: fix failing test
1 parent cc795a0 commit 7155fd2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extension/js/common/ui/key-import-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ export class KeyImportUi {
362362
const hasNewerExpiration = !!(k.expiration && existingKey.expiration && k.expiration > existingKey.expiration);
363363
if (hasNewerExpiration) {
364364
const updateKeyMessage =
365-
"The key you're trying to import is a newer version of one you already have, based on its expiry date.\n\n" +
365+
"The key you're trying to import is a newer version of one you already have, based on its expiry date. " +
366366
"We'll redirect you to the key update page to manage your key.";
367367
if (await Ui.modal.confirm(updateKeyMessage, true)) {
368368
window.location.href = Url.create('/chrome/settings/modules/my_key_update.htm', { acctEmail, fingerprint: k.id, parentTabId: '' });

test/source/tests/settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,9 +839,9 @@ export const defineSettingsTests = (testVariant: TestVariant, testWithBrowser: T
839839
await addKeyPage.waitAndType('@input-passphrase', 'passphrase');
840840
await addKeyPage.waitAndClick('@action-add-private-key-btn');
841841
const expectedInfoMsg =
842-
"The key you're trying to import is a newer version of one you already have, based on its expiry date.\n\n" +
842+
"The key you're trying to import is a newer version of one you already have, based on its expiry date. " +
843843
"We'll redirect you to the key update page to manage your key.";
844-
await addKeyPage.waitAndRespondToModal('info', 'confirm', expectedInfoMsg);
844+
await addKeyPage.waitAndRespondToModal('confirm', 'confirm', expectedInfoMsg);
845845
const myKeyUpdatePage = await settingsPage.getFrame(['my_key_update.htm']);
846846
await myKeyUpdatePage.waitAndClick('@source-paste');
847847
await myKeyUpdatePage.waitAndType('@input-prv-key', testConstants.keyWith80yearsExpiry);

0 commit comments

Comments
 (0)