Skip to content

fix(web-integration): reuse static UI context - #3089

Open
EAGzzyCSL wants to merge 1 commit into
mainfrom
zzy/reuse-static-ui-context
Open

fix(web-integration): reuse static UI context#3089
EAGzzyCSL wants to merge 1 commit into
mainfrom
zzy/reuse-static-ui-context

Conversation

@EAGzzyCSL

Copy link
Copy Markdown
Collaborator

Summary

  • let StaticPageAgent return the UI context already held by StaticPage
  • normalize restored screenshot objects into ScreenshotItem instances without decoding, resizing, or JPEG conversion
  • invalidate the normalized context when StaticPage.updateContext() receives a new report context
  • avoid loading Photon WASM when opening a report's static context in Playground

Testing

  • pnpm run lint
  • pnpm --filter @midscene/web exec rstest run tests/unit-test/static-page.test.ts
  • pnpm exec nx test @midscene/web
  • pnpm exec nx build @midscene/web
  • pnpm exec nx build @midscene/report

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