Skip to content

refactor(test): use captureScreenshot helper from @screenly/edge-apps - #9

Draft
nicomiguelino wants to merge 1 commit into
developmentfrom
feat/use-capture-screenshot-helper
Draft

refactor(test): use captureScreenshot helper from @screenly/edge-apps#9
nicomiguelino wants to merge 1 commit into
developmentfrom
feat/use-capture-screenshot-helper

Conversation

@nicomiguelino

Copy link
Copy Markdown
Contributor

Summary

  • Refactors e2e/screenshots.spec.ts to use the new captureScreenshot(browser, options) helper from @screenly/edge-apps/test/screenshots instead of the manually duplicated Playwright context/page/mock/screenshot boilerplate, for both the main and no-api-key resolution loops.
  • Pins @screenly/edge-apps to 26.8.0 in package.json.
  • Adds the regenerated screenshots/ output for review.

Draft — depends on Screenly/edge-apps-library#78 being merged and released as 26.8.0 on npm first. bun.lock is intentionally not included in this commit; it'll be regenerated once 26.8.0 is actually published.

Test plan

  • bun run type-check
  • bunx prettier --check package.json e2e/screenshots.spec.ts
  • bun run screenshots (to be run once 26.8.0 is published and bun install succeeds)

- Replace the manual Playwright context/page/mock/screenshot
  boilerplate with the new captureScreenshot helper, for both the
  main and no-api-key resolution loops
- Pin @screenly/edge-apps to 26.8.0

Draft: depends on Screenly/edge-apps-library#78 being merged and
released as 26.8.0 first.
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