From b8dd5a7d8f99bb0ccfad37b1b618794a05a96388 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Sun, 12 Apr 2026 14:38:45 +0200 Subject: [PATCH] fix: principal text assertion not object --- src/page-objects/console.page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page-objects/console.page.ts b/src/page-objects/console.page.ts index 44f2f83..adbc4e6 100644 --- a/src/page-objects/console.page.ts +++ b/src/page-objects/console.page.ts @@ -1,4 +1,4 @@ -import {type PrincipalText, j} from '@junobuild/schema'; +import {PrincipalTextSchema, type PrincipalText} from '@junobuild/schema'; import {notEmptyString} from '@junobuild/utils'; import {expect} from '@playwright/test'; import {TIMEOUT_AVERAGE, TIMEOUT_SHORT} from '../constants/e2e.constants'; @@ -140,7 +140,7 @@ export class ConsolePage extends BrowserPage { const satelliteId = await this.page.evaluate(() => navigator.clipboard.readText()); expect(notEmptyString(satelliteId)).toBeTruthy(); - expect(j.principal().safeParse(satelliteId).success).toBeTruthy(); + expect(PrincipalTextSchema.safeParse(satelliteId).success).toBeTruthy(); return satelliteId; }