Skip to content

fix: wait for element to be displayed before assertView#1244

Open
shadowusr wants to merge 1 commit intomasterfrom
users/shadowusr/TRIVIAL.wait-for-displayed-assert-view
Open

fix: wait for element to be displayed before assertView#1244
shadowusr wants to merge 1 commit intomasterfrom
users/shadowusr/TRIVIAL.wait-for-displayed-assert-view

Conversation

@shadowusr
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

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

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: ef8eabbd78

ℹ️ 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".

browser
.$(selector)
.then(el => el.waitForExist())
.then(el => el.waitForDisplayed())
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep assertView waiting for existence, not visibility

Switching assertView prechecks to waitForDisplayed changes command semantics and can fail valid scenarios where a selector exists but is intentionally hidden (or temporarily hidden) at capture time. The screenshot pipeline still treats hidden selectors as a supported case (getElementCaptureRect returns null for hidden nodes and only errors when all capture areas are hidden in src/browser/client-scripts/index.js), and docs currently specify waitForExist for assertView (docs/writing-tests.md, note under assertView). With this change, such tests now time out before capture instead of proceeding with the existing hidden-element handling.

Useful? React with 👍 / 👎.

@shadowusr shadowusr force-pushed the users/shadowusr/TRIVIAL.wait-for-displayed-assert-view branch from ef8eabb to 2c1f5c6 Compare April 22, 2026 13:30
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 22, 2026

Open in StackBlitz

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

commit: 2c1f5c6

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