fix: add user id checks
This commit is contained in:
@@ -34,7 +34,17 @@ export class SelectorValidator {
|
||||
*/
|
||||
async initialize(page: Page, url: string): Promise<void> {
|
||||
this.page = page;
|
||||
await this.page.goto(url, { waitUntil: 'networkidle', timeout: 30000 });
|
||||
try {
|
||||
await page.goto(url, {
|
||||
waitUntil: "networkidle",
|
||||
timeout: 100000,
|
||||
});
|
||||
} catch (err) {
|
||||
await page.goto(url, {
|
||||
waitUntil: "domcontentloaded",
|
||||
timeout: 100000,
|
||||
});
|
||||
}
|
||||
logger.info(`Navigated to ${url} using RemoteBrowser page`);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ export class WorkflowEnricher {
|
||||
*/
|
||||
static async enrichWorkflow(
|
||||
simplifiedWorkflow: SimplifiedWorkflowPair[],
|
||||
userId: string = 'sdk-validation-user'
|
||||
userId: string
|
||||
): Promise<{ success: boolean; workflow?: any[]; errors?: string[]; url?: string }> {
|
||||
const errors: string[] = [];
|
||||
const enrichedWorkflow: any[] = [];
|
||||
|
||||
Reference in New Issue
Block a user