Skip to content

fix: add support for ignoreElements in viewport-mode assertView#1289

Merged
shadowusr merged 2 commits into
masterfrom
users/shadowusr/TESTPLANE-1063
Jul 7, 2026
Merged

fix: add support for ignoreElements in viewport-mode assertView#1289
shadowusr merged 2 commits into
masterfrom
users/shadowusr/TESTPLANE-1063

Conversation

@shadowusr

Copy link
Copy Markdown
Member

What's done?

  • Added support for ignoreSelectors in assertView viewport mode (e.g. assertView('state-name', { ignoreElements: ['#ignore'] }))

@pkg-pr-new

pkg-pr-new Bot commented Jul 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: bd57ded

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

✅ Testplane E2E run succeed

Report

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

✅ Testplane browser-env run succeed

Report

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f67b9c95d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/browser/client-scripts/screen-shooter/implementation.ts Outdated
Comment thread src/browser/screen-shooter/viewport-screen-shooter.ts Outdated
usePixelRatio?: boolean;
disableAnimation?: boolean;
disableHover?: DisableHoverMode;
ignoreSelectors?: string[];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you decide to name it differently? I mean not ignoreElements. For example, for android, we can pass native locators

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not public API, it's an internal options object, so we can change this any time. It's consistent with this field:

For example, for android, we can pass native locators

Hmm, I doubt that will work currently. Right now we only work with css selectors in assertView. But yeah, in the future we could support that. In that case, we can always rename it

@shadowusr
shadowusr merged commit 29c5221 into master Jul 7, 2026
9 checks passed
@shadowusr
shadowusr deleted the users/shadowusr/TESTPLANE-1063 branch July 7, 2026 21:59
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.

3 participants