Skip to content

Conversation

@nora-weisser
Copy link
Contributor

@nora-weisser nora-weisser commented Dec 12, 2025

Summary

This PR introduces a Docker-based setup for visual regression testing to ensure consistent UI rendering across different browsers and operating systems.

What’s included

  • Added a Dockerfile to eliminate OS- and browser-specific rendering inconsistencies during visual tests
  • Introduced Docker Compose to simplify local and CI execution
  • Standardized screen size and screenshot naming conventions for reliable visual comparisons
  • Updated the existing CI pipeline to run tests inside Docker
  • Added @visual tags to selectively exclude visual tests from regular test runs and reduce false positives
  • Introduced a command to update baseline screenshots when UI changes are intentional

Why this change

Running visual tests in a controlled Docker environment ensures deterministic results, reduces flaky failures caused by environment differences, and makes visual regression testing easier to maintain and scale.

Type

  • Bug Fix
  • New Feature
  • Code Refactor
  • Documentation
  • Other

Related Issue

Screenshots

Testing

Pull request checklist

Please check if your PR fulfills the following requirements:

  • I checked and followed the contributor guide
  • I have tested my changes locally.
  • I have added a screenshot from the website after I tested it locally

Copy link
Contributor

@gpaOliveira gpaOliveira left a comment

Choose a reason for hiding this comment

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

Minor remarks only, looking good for me already 👍

@nora-weisser nora-weisser marked this pull request as ready for review January 17, 2026 15:20
Copy link
Collaborator

@dricazenck dricazenck left a comment

Choose a reason for hiding this comment

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

🚀 really nice :)

@sonarqubecloud
Copy link

@nora-weisser nora-weisser merged commit c208d86 into Women-Coding-Community:main Jan 17, 2026
3 checks passed
@nora-weisser nora-weisser deleted the feature/visual_testing branch January 17, 2026 19:26
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.

3 participants