Skip to content

Run system tests in Chrome with reduced motion - #472

Merged
coorasse merged 1 commit into
mainfrom
feature/chrome-reduced-motion
Nov 6, 2026
Merged

coorasse merged 1 commit into
mainfrom
feature/chrome-reduced-motion

Conversation

@coorasse

@coorasse coorasse commented Nov 6, 2026

Copy link
Copy Markdown
Member

Adds --force-prefers-reduced-motion to the Chrome setup for system tests in:

  • ruby_on_rails/rspec.md (also uses screen_size: instead of resize_to, and the .env.example driver names become chrome / headless_chrome as using: expects)
  • ruby_on_rails/gitlab_capybara_selenium.md (remote and local driver)
  • templates/features/env/capybara.rb (Cucumber)

Smooth scrolling (e.g. Bootstrap) makes chromedriver wait about a second before every click on an element below the fold. Reduced motion turns it off and makes CSS transitions instant. In migrolino this removed most of the runtime of the CRM tour spec.

Smooth scrolling (e.g. Bootstrap) makes chromedriver wait about a second
before every click on an element below the fold. Forcing
prefers-reduced-motion turns it off and makes CSS transitions instant.
@coorasse coorasse self-assigned this Nov 6, 2026
@coorasse
coorasse merged commit 9612ecf into main Nov 6, 2026
2 checks passed
@coorasse
coorasse deleted the feature/chrome-reduced-motion branch November 6, 2026 14:37
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