full tour
This commit is contained in:
@@ -13,7 +13,7 @@ import path from 'path';
|
||||
|
||||
try {
|
||||
await page.waitForSelector('svg[aria-label="Home"]', { timeout: 120000 });
|
||||
const secretsDir = path.resolve('secrets');
|
||||
const secretsDir = path.resolve('../secrets');
|
||||
if (!fs.existsSync(secretsDir)) fs.mkdirSync(secretsDir);
|
||||
|
||||
await context.storageState({ path: path.join(secretsDir, 'auth.json') });
|
||||
|
||||
Reference in New Issue
Block a user