Skip to content

waitFor.timeoutMs passes straight to puppeteer unvalidated #9

Description

@royalpinto007

Problem

waitFor.timeoutMs passes straight to puppeteer with no range check; a negative timeout throws inside the run instead of a structured 400 like validateRecipeUrls produces.

Where

src/browser.ts (timeout: step.timeoutMs ?? 15000, no validation).

Acceptance

Add a failing test first asserting a recipe with timeoutMs: -5 is rejected at validation time with a 400 error. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions