grafana/k6

Move Sobek option parsing to the mapping layer

Open

Aperta il 14 ott 2025

Vedi su GitHub
 (24 commenti) (0 reazioni) (1 assegnatario)Go (30.564 star) (1537 fork)batch import
area: browsergood first issuerefactor

Descrizione

What

  • Move Sobek option parsing to the mapping layer.

Why

  • Separation of concerns.
  • Option parsing is only required by the mapping layer.
  • To simplify and make the code and tests easy to reason about.

Current options to move

  • Frame options
  • Locator options
  • ElementHandleBaseOptions
  • PageReloadOptions
  • PageScreenshotOptions
  • Size.Parse
  • #5687
  • #5302
  • #5560

Example

  • In this code, the parsing happens in the mapping layer.

Related

  • This issue is a continuation of the epic issue #4219.

Guida contributor