test: fix browser and matrix verification

This commit is contained in:
Peter Steinberger
2026-04-10 17:24:47 +01:00
parent d5df4cd4e5
commit 58ee5e48d1
3 changed files with 9 additions and 4 deletions

View File

@@ -49,6 +49,7 @@ export function createProfileSelectionOps({
const ensureTabAvailable = async (targetId?: string): Promise<BrowserTab> => {
await ensureBrowserAvailable();
await assertProfileCdpEndpointAllowed();
const profileState = getProfileState();
const tabs1 = await listTabs();
if (tabs1.length === 0) {
@@ -93,6 +94,7 @@ export function createProfileSelectionOps({
};
const resolveTargetIdOrThrow = async (targetId: string): Promise<string> => {
await assertProfileCdpEndpointAllowed();
const tabs = await listTabs();
const resolved = resolveTargetIdFromTabs(targetId, tabs);
if (!resolved.ok) {