Skip to content

Clip tall iframe screenshots to frame bounds - #1336

Draft
DudaGod wants to merge 1 commit into
masterfrom
INFRADUTY-30657.clip_iframe_bounds
Draft

DudaGod wants to merge 1 commit into
masterfrom
INFRADUTY-30657.clip_iframe_bounds

Conversation

@DudaGod

@DudaGod DudaGod commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

I intersect the visible and safe capture areas with the content bounds of each enclosing iframe. This prevents Testplane from treating pixels outside a 600 px high frame as visible when it captures a 900 px tall element.

After #1334 was merged, I rebased this change onto master. I added an assertView E2E with a tall gradient inside the offset iframe; its reference contains the full 900 px height.

Verification after rebase:

  • npm run build
  • npm test — 3,593 passing, 1 pending
  • Focused iframe assertView E2E tests — 2 passing

Parent-page scrolling and fixed overlays are separate existing iframe cases.

@DudaGod
DudaGod force-pushed the INFRADUTY-30657.reproduce_iframe_assert_view branch from 8143c0a to 1cde2e4 Compare September 25, 2026 06:34
@DudaGod
DudaGod force-pushed the INFRADUTY-30657.clip_iframe_bounds branch from 7ec49f4 to eaf8f17 Compare September 25, 2026 06:34
Base automatically changed from INFRADUTY-30657.reproduce_iframe_assert_view to master September 28, 2026 14:10
@DudaGod
DudaGod force-pushed the INFRADUTY-30657.clip_iframe_bounds branch from eaf8f17 to ee67611 Compare September 28, 2026 14:41
@github-actions

Copy link
Copy Markdown

✅ Testplane E2E run succeed

Report

@pkg-pr-new

pkg-pr-new Bot commented Sep 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1336

commit: ee67611

@github-actions

Copy link
Copy Markdown

✅ Testplane browser-env run succeed

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