diff options
Diffstat (limited to 'source/app/Fixtures.mc')
| -rw-r--r-- | source/app/Fixtures.mc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/app/Fixtures.mc b/source/app/Fixtures.mc index 463780c..7c21d9a 100644 --- a/source/app/Fixtures.mc +++ b/source/app/Fixtures.mc @@ -36,7 +36,9 @@ module Fixtures { vault.session.unlock(Bytes.fromHex(FIXTURE_MASTER_KEY)); } var rfcKey = "12345678901234567890"; // lint: allow-literal (RFC 4226 test key) - vault.add(otp("GitHub", "alice@example.com", "Work", Entry.OTP_TOTP, Hashes.SHA1, 6, 30, rfcKey, false)); + var github = otp("GitHub", "alice@example.com", "Work", Entry.OTP_TOTP, Hashes.SHA1, 6, 30, rfcKey, false); + github.favorite = true; // the glance code (UI test: optGlanceCode is on) + vault.add(github); vault.add(otp("Google", "bob@example.com", "Personal", Entry.OTP_TOTP, Hashes.SHA256, 8, 30, "12345678901234567890123456789012", false)); // lint: allow-literal (RFC 6238 test key) vault.add(otp("Bank", "carol", "Finance", Entry.OTP_TOTP, Hashes.SHA512, 6, 30, @@ -71,14 +73,18 @@ module Fixtures { } } - // UI-test build: the other forms, filled in as the phone would (README - // 16, M7 end-to-end): Add OTP (a TOTP whose code the screenshot shows), + // UI-test build: the glance option, and the other forms, filled in as + // the phone would (README 16, M7 end-to-end): Add OTP (a TOTP whose code the screenshot shows), // Add code (a Code 128 card whose screenshot must decode) and Manage // entry (Bank's group renamed: Bank is locked, so the change waits for // the PIN, which the UI flow confirms from the menu). They are applied // after the import, in README 10.3 order, so the new entries end the // list. function sendForms(vault as Vault) as Void { + // The glance shows GitHub's code after the flow (the About scan + // seals it for the glance). + Application.Properties.setValue("optGlanceCode", true); + vault.glanceCode = true; Application.Properties.setValue("otpType", Entry.OTP_TOTP); Application.Properties.setValue("otpIssuer", "Mailbox"); Application.Properties.setValue("otpAccount", "fixture@example.com"); |
