grafana/k6

Move Sobek option parsing to the mapping layer

开放

#5,305 创建于 2025年10月14日

 (30 条评论) (0 个反应) (1 位负责人)Go (1,537 个派生)batch import
area: browsergood first issuerefactor

仓库指标

星标
 (30,564 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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
  • ElementHandleBaseOptions
  • PageReloadOptions
  • PageScreenshotOptions
  • Locator options
  • 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.

贡献者指南