Skip to content

chore: update .scrollIntoView() example #5161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 764 commits into
base: main
Choose a base branch
from

Conversation

emilyrohrbough
Copy link
Member

@emilyrohrbough emilyrohrbough commented Mar 31, 2023

.scrollIntoView() is unsafe to chain further - update example to show valid example

Closes #5002
Closes #5160

@emilyrohrbough
Copy link
Member Author

TODO: Needs screenshot update of the command log.

@emilyrohrbough emilyrohrbough marked this pull request as draft March 31, 2023 13:53
gilzow and others added 28 commits June 6, 2024 14:38
Updates test description to match previous test specifics against example.cypress.io
* Fix TypeScript capitalization in Changelog

* Correct TypeScript in 13.12.0 changelog
* docs: fix typo in test-isolation.mdx

* fix typo in test-isolation.mdx

replace "when ran" with "when run"

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>

---------

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
* List CI Docker examples

* Correct typo
* feat: first pass at adding angular signals documentation (#5841)

* feat: first pass at adding angular signals documentation

* take suggestions from code review

* remove info from mount overview for angular-signals

* use contraction for does not

* overhaul the angular signals documentation to be more user friendly on usage and not so technical

* empty commit to kick off ci

* changelog for 13.13.0

---------

Co-authored-by: Cacie Prins <cacie@cypress.io>
* Rework Docker prerequisites

* correct statement about unzip with Node.js
* Remove outdated workshops

* Delete examples workshop page
As we introduce JSX syntax here, the component support file needs/should have the .jsx file extension.
* Changing name of 'Free' plan to 'Starter' plan

This PR will coincide with changes that will be published to our cypress.io website.  The benefits and features remain the same, but the name is changing from 'free' to 'starter'

* 2nd round of fixes for converting free to starter

Addressed the two screen caps raised by review, and the 'free' reference on the FAQ page
…5876)

* Update what is supported in Test Replay to be accurate and point to issues

* reword question

* fix typo

* lint fix

* Update to be a bit more readable with objects

* run lint after running yarn with updates

* lint fix

* remove period
… retroactively supported operating systems (#5877)

* update documentation to display required minimum version of glibc and retroactively supported operating systems

* update documentation to apply suggestions

* add min glibc version in linux prereqs

* attempt to reword glibc min requirement
* feat: tooling, guidelines update - Wopee.io for visual testing

* chore: fixing formatting issue

* chore: fixing formatting issue
emilyrohrbough and others added 20 commits May 29, 2025 14:17
* update docs for new accessibility configuration and branch review capabilities

* add empty state

* Update docs/accessibility/core-concepts/compare-reports.mdx

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* fix missing word

* fix bad link

* fix link for real

* lint fix

* fix headings

* update diff title

* update overview

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
…re (#6199)

* clarify that dynamic values cannot be provided to Cypress.require

* Update docs/api/cypress-api/require.mdx

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>

---------

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
* break up tests

* Update cypress/e2e/all_app_pages.cy.ts

* 6 machines but suspect this needs adjusted

* 6 machines

* try this

* .
* Add Windows 11 24H2 arm64 support

* min cypress 14.5.0 required

* changelog ref relative
* WIP files for new configuration properties.

* Fixing lint errors. Adding 'assert' example.

* More formatting

* make minor updates and add intro

---------

Co-authored-by: marktnoonan <mark@cypress.io>
* update supported providers for the Results API

* wip docs for Cypress rules

* add detail, update changelog

* changelog updates

* improve alt text

* update wording for website crawling

* tweaks

* lint fix

* fix typo in rule id

* remove temp file

* Update docs/accessibility/core-concepts/cypress-rules.mdx

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>

* Update docs/accessibility/core-concepts/cypress-rules.mdx

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>

* fix a typo

* update rule text

* add more detail

* add more detail

* lint fix

* add more detail

* Update docs/accessibility/core-concepts/cypress-rules.mdx

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>

* Update docs/accessibility/core-concepts/cypress-rules.mdx

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>

* remove unfinished example

* changelog

* Update docs/accessibility/core-concepts/cypress-rules.mdx

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update docs/accessibility/core-concepts/cypress-rules.mdx

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>

* Update docs/accessibility/core-concepts/cypress-rules.mdx

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* add overall explainer at the top

* Update docs/accessibility/core-concepts/cypress-rules.mdx

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>

---------

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Copy link
Contributor

@marktnoonan marktnoonan left a comment

Choose a reason for hiding this comment

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

@emilyrohrbough I just came across this by chance, seems fine to merge?

@MikeMcC399
Copy link
Contributor

@marktnoonan

It can't be merged until it is fixed to change the moved contents on https://docs.cypress.io/api/commands/scrollIntoView#Scrolling

@marktnoonan
Copy link
Contributor

Thanks @MikeMcC399 - I noticed that and the TODO for the screenshot of the command log (but only after I approved).

I'll tidy this up at some point today and we can get it in.

Copy link
Contributor

@marktnoonan marktnoonan left a comment

Choose a reason for hiding this comment

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

Just blocking while there is WIP

Copy link

cypress bot commented Jul 11, 2025

cypress-documentation    Run #552

Run Properties:  status check passed Passed #552  •  git commit 8b3ba19a0b: Merge branch 'correct-scrollIntoView-example' of https://github.com/cypress-io/c...
Project cypress-documentation
Branch Review correct-scrollIntoView-example
Run status status check passed Passed #552
Run duration 05m 17s
Commit git commit 8b3ba19a0b: Merge branch 'correct-scrollIntoView-example' of https://github.com/cypress-io/c...
Committer marktnoonan
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 309
View all changes introduced in this branch ↗︎
UI Coverage  10.99%
  Untested elements 2445  
  Tested elements 3  
Accessibility  96.99%
  Failed rules  1 critical   3 serious   4 moderate   0 minor
  Failed elements 26  

@MikeMcC399
Copy link
Contributor

@marktnoonan

It may be easier to close this PR and create as new one, as the changes are quite trivial and the target file has changed.

It's a bit scary seeing 300+ files changed, even if this PR is in draft!

@marktnoonan
Copy link
Contributor

Haha, yes, I did a suspicious rebase on my side - we'll make sure the diff is accurate one way or another before merge.

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.

unsafe-to-chain-command error thrown when chaining should() command to scrollIntoView scrollIntoView doc page contains unsafe chains in examples