From 7e87ee7cfcc5b93fe6251145b5710f3bcddcba29 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 8 Jan 2021 05:20:15 -0500 Subject: [PATCH 1/3] Added test for updating non-first private key --- extension/chrome/settings/modules/my_key.htm | 4 +- test/source/tests/settings.ts | 35 ++++++- test/source/tests/tooling/consts.ts | 104 ++++++++++++++++++- test/source/util/index.ts | 2 +- 4 files changed, 140 insertions(+), 5 deletions(-) diff --git a/extension/chrome/settings/modules/my_key.htm b/extension/chrome/settings/modules/my_key.htm index 22a2a14ee1f..b38f897df43 100644 --- a/extension/chrome/settings/modules/my_key.htm +++ b/extension/chrome/settings/modules/my_key.htm @@ -36,7 +36,7 @@
Private Key for   update  update  revocation certificate
Never send this to anyone!
Copy private key to clipboard diff --git a/test/source/tests/settings.ts b/test/source/tests/settings.ts index b085b1625ad..1e91d981582 100644 --- a/test/source/tests/settings.ts +++ b/test/source/tests/settings.ts @@ -267,7 +267,7 @@ export let defineSettingsTests = (testVariant: TestVariant, testWithBrowser: Tes const myKeyFrame = await SettingsPageRecipe.awaitNewPageFrame(settingsPage, `@action-show-key-1`, ['my_key.htm', 'placement=settings']); await Util.sleep(1); await myKeyFrame.waitAll('@content-fingerprint'); - await myKeyFrame.waitAndClick('#action_update_prv'); + await myKeyFrame.waitAndClick('@action-update-prv'); await myKeyFrame.waitAndType('@input-prv-key', testKeyMultiple98acfa1eadab5b92); await myKeyFrame.type('@input-passphrase', '1234'); await myKeyFrame.waitAndClick('@action-update-key');