Skip to content

fix(web-integration): improve static report playground execution - #3090

Open
EAGzzyCSL wants to merge 1 commit into
mainfrom
zzy/allow-file-report-cors
Open

fix(web-integration): improve static report playground execution#3090
EAGzzyCSL wants to merge 1 commit into
mainfrom
zzy/allow-file-report-cors

Conversation

@EAGzzyCSL

Copy link
Copy Markdown
Collaborator

Summary

  • reuse the serialized UI context in StaticPageAgent so static reports avoid redundant browser-side screenshot decoding and resizing
  • preserve serialized screenshot items and invalidate the cached UI context when static context changes
  • enable CORS for the Web Playground platform and allow the opaque Origin: null used by file:// reports
  • keep the default CORS policy limited to local browser origins and file reports, while allowing callers to disable it explicitly

Validation

  • pnpm run lint
  • pnpm exec nx test @midscene/playground -- launcher.test.ts
  • pnpm exec nx test @midscene/web -- platform.test.ts
  • pnpm exec nx test @midscene/web
  • pnpm exec nx build @midscene/playground
  • pnpm exec nx build @midscene/web
  • pnpm exec nx build @midscene/report

@EAGzzyCSL
EAGzzyCSL force-pushed the zzy/allow-file-report-cors branch from a9a36fc to a0f21ff Compare September 3, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant