Skip to content

Commit

Permalink
headless
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksandre committed Feb 2, 2025
1 parent 2e61738 commit b74d7ea
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions packages/w3wallets/src/withWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,9 @@ export function withWallets<T extends readonly WalletName[]>(
extensionPaths.push(polkadotJSPath);
}

console.log("launching context");

extensionPaths.forEach((extPath) => {
try {
// Check that the directory itself is accessible
fs.accessSync(extPath, fs.constants.R_OK);
console.log(`✅ Found extension directory: ${extPath}`);
} catch (error) {
console.error(
`❌ Extension path not found or no permission: ${extPath}`,
error,
);
}

// Check specifically for manifest.json (common entrypoint)
const manifestPath = path.join(extPath, "manifest.json");
if (fs.existsSync(manifestPath)) {
console.log(`✅ Found manifest.json at: ${manifestPath}`);
} else {
console.error(`❌ No manifest.json found at: ${manifestPath}`);
}
});

const context = await chromium.launchPersistentContext(userDataDir, {
// TODO: return parametrization
headless: false,
headless: true,
// headless: testInfo.project.use.headless ?? true,
channel: "chromium",
args: [
Expand Down

0 comments on commit b74d7ea

Please sign in to comment.