Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/page-objects/console.page.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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;
}
Expand Down
Loading