Skip to content

Commit c268bd4

Browse files
committed
test fix
1 parent 99b549c commit c268bd4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/source/tests/settings.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,11 @@ export const defineSettingsTests = (testVariant: TestVariant, testWithBrowser: T
736736
}
737737
}, { isSavePassphraseChecked: false, isSavePassphraseHidden: false });
738738
await settingsPage1.close();
739-
await SettingsPageRecipe.addKeyTest(t, browser, acctEmail, testConstants.testKeyMultiple98acfa1eadab5b92, '1234',
739+
const passphrase = 'strong enough passphrase for inbox backup';
740+
const key98acfa1eadab5b92 = await KeyUtil.parse(testConstants.testKeyMultiple98acfa1eadab5b92);
741+
expect(await KeyUtil.decrypt(key98acfa1eadab5b92, '1234')).to.equal(true);
742+
await KeyUtil.encrypt(key98acfa1eadab5b92, passphrase);
743+
await SettingsPageRecipe.addKeyTest(t, browser, acctEmail, testConstants.testKeyMultiple98acfa1eadab5b92, passphrase,
740744
{ isSavePassphraseChecked: true, isSavePassphraseHidden: false });
741745
const backupPage = await browser.newPage(t, TestUrls.extension(`/chrome/settings/modules/backup.htm?acctEmail=${acctEmail}&action=setup_manual` +
742746
'&type=openpgp&id=515431151DDD3EA232B37A4C98ACFA1EADAB5B92&idToken=fakeheader.01'));

0 commit comments

Comments
 (0)