Skip to content
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

Investigate Visual Regression Testing Setup for Rails with Headless Browser #199

Open
loftwah opened this issue Sep 23, 2024 · 0 comments
Open

Comments

@loftwah
Copy link
Owner

loftwah commented Sep 23, 2024

Explore the feasibility and effectiveness of implementing visual regression testing in the Rails environment using a headless browser. This approach will ensure that the visual appearance of the application remains consistent over time, automatically detecting unintended changes in the UI.

Key Objectives:

  1. Research Available Tools:

    • Identify and evaluate tools compatible with Rails, such as capybara-screenshot-diff, applitools, or others.
    • Assess the active maintenance and community support for these tools.
  2. Setup and Configuration:

    • Implement a basic configuration using a chosen tool, integrated with Capybara and RSpec.
    • Configure headless browser support (e.g., Chrome or Firefox) for running tests in both local and CI environments.
  3. Baseline and Comparison:

    • Establish baseline images for critical pages or components.
    • Define comparison thresholds and color sensitivity to determine acceptable visual differences.
  4. Integration with CI/CD:

    • Ensure the solution works seamlessly in the CI/CD pipeline, storing baseline images and reporting failures with visual diffs.
    • Evaluate the feasibility of automatically updating baseline images when necessary.
  5. Evaluation and Recommendations:

    • Analyze the pros and cons of the selected approach.
    • Provide recommendations on whether to adopt visual regression testing and under what conditions.

Additional Information: The goal is to automate the detection of visual regressions and minimize manual UI review, improving test coverage and confidence in the visual integrity of the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant