Skip to content

Conversation

@cacieprins
Copy link
Contributor

@cacieprins cacieprins commented Nov 13, 2025

  • Closes

Additional details

When log:false, we don't need to determine whether any matched elements are visible. Because the log entry won't be visible.

Steps to test

How has the user experience changed?

PR Tasks


Note

Skips :visible filtering for hidden (log: false) command logs and makes setElAttrs chainable, with tests and changelog updates.

  • Driver (logging)
    • Optimize Log.setElAttrs() to skip :visible filtering when hidden is set, avoiding costly DOM checks.
    • Change setElAttrs to return the Log instance for chaining.
  • Tests
    • Add spec in packages/driver/cypress/e2e/cypress/log.cy.js asserting no .filter(':visible') when log is hidden.
  • Changelog
    • Update cli/CHANGELOG.md with performance note about skipping visibility assessments for hidden command logs.

Written by Cursor Bugbot for commit 94f4542. This will update automatically on new commits. Configure here.

@cacieprins cacieprins marked this pull request as ready for review November 13, 2025 18:49
@cypress
Copy link

cypress bot commented Nov 13, 2025

cypress    Run #67321

Run Properties:  status check passed Passed #67321  •  git commit 94f45427cc: changelog
Project cypress
Branch Review perf/skip-visible-check-log-false
Run status status check passed Passed #67321
Run duration 19m 00s
Commit git commit 94f45427cc: changelog
Committer Cacie Prins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 10
Tests that did not run due to a developer annotating a test with .skip  Pending 1098
Tests that did not run due to a failure in a mocha hook  Skipped 4
Tests that passed  Passing 26598
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  45.61%
  Untested elements 187  
  Tested elements 161  
Accessibility  97.98%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 101  

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.

2 participants