There are no claims yet today for you to confirm.
diff --git a/src/views/TestView.vue b/src/views/TestView.vue
index 6de5b03..b62f500 100644
--- a/src/views/TestView.vue
+++ b/src/views/TestView.vue
@@ -23,6 +23,23 @@
Notiwind Alerts
+
+
+ Toast
+
+
Info
@@ -52,7 +69,7 @@
5000,
)
"
- class="font-bold uppercase bg-emerald-600 text-white px-3 py-2 rounded-md mr-2"
+ class="font-bold capitalize bg-emerald-600 text-white px-3 py-2 rounded-md mr-2"
>
Success
@@ -69,7 +86,7 @@
5000,
)
"
- class="font-bold uppercase bg-amber-600 text-white px-3 py-2 rounded-md mr-2"
+ class="font-bold capitalize bg-amber-600 text-white px-3 py-2 rounded-md mr-2"
>
Warning
@@ -86,10 +103,55 @@
5000,
)
"
- class="font-bold uppercase bg-rose-600 text-white px-3 py-2 rounded-md mr-2"
+ class="font-bold capitalize bg-rose-600 text-white px-3 py-2 rounded-md mr-2"
>
Danger
+
+
+ Notif ON
+
+
+
+ Notif MUTE
+
+
+
+ Notif OFF
+
@@ -122,7 +184,7 @@
Register Passkey
Simplewebauthn
@@ -132,13 +194,13 @@
Create JWT
Simplewebauthn
Navigator
@@ -148,19 +210,19 @@
Verify New JWT
Simplewebauthn
WebCrypto
p256 - broken
@@ -168,11 +230,25 @@
Verify New JWT -- requires creation first
Verify Hard-Coded JWT
+
+
+
Encryption & Decryption
+ See console for more output.
+
+
+ Run Test
+
+ Result: {{ encryptionTestResult }}
+
+
@@ -187,6 +263,8 @@ import QuickNav from "../components/QuickNav.vue";
import { AppString, NotificationIface } from "../constants/app";
import { db, retrieveSettingsForActiveAccount } from "../db/index";
import * as vcLib from "../libs/crypto/vc";
+import * as cryptoLib from "../libs/crypto";
+
import {
PeerSetup,
verifyJwtP256,
@@ -217,6 +295,9 @@ const TEST_PAYLOAD = {
export default class Help extends Vue {
$notify!: (notification: NotificationIface, timeout?: number) => void;
+ // for encryption/decryption
+ encryptionTestResult?: boolean;
+
// for file import
fileName?: string;
@@ -227,6 +308,8 @@ export default class Help extends Vue {
peerSetup?: PeerSetup;
userName?: string;
+ cryptoLib = cryptoLib;
+
async mounted() {
const settings = await retrieveSettingsForActiveAccount();
this.activeDid = settings.activeDid || "";
@@ -301,6 +384,10 @@ export default class Help extends Vue {
this.credIdHex = account.passkeyCredIdHex;
}
+ public async testEncryptionDecryption() {
+ this.encryptionTestResult = await cryptoLib.testEncryptionDecryption();
+ }
+
public async createJwtSimplewebauthn() {
const account: AccountKeyInfo | undefined = await retrieveAccountMetadata(
this.activeDid || "",
diff --git a/test-playwright/00-noid-tests.spec.ts b/test-playwright/00-noid-tests.spec.ts
index df87db2..3631e87 100644
--- a/test-playwright/00-noid-tests.spec.ts
+++ b/test-playwright/00-noid-tests.spec.ts
@@ -84,8 +84,8 @@ test('Check setting name & sharing info', async ({ page }) => {
await expect(page.getByText('Set Your Name')).toBeVisible();
await page.getByRole('textbox').fill('Me Test User');
await page.locator('button:has-text("Save")').click();
- await expect(page.getByText('share another way')).toBeVisible();
- await page.getByRole('button', { name: /share another way/ }).click();
+ await expect(page.getByText('share some other way')).toBeVisible();
+ await page.getByRole('button', { name: /share some other way/ }).click();
await expect(page.getByRole('button', { name: 'copy to clipboard' })).toBeVisible();
await page.getByRole('button', { name: 'copy to clipboard' }).click();
await expect(page.getByText('contact info was copied')).toBeVisible();