Intermittent workflow failures when running UI tests with mixed test assets in CircleCI

Hi everyone,

I’m currently troubleshooting an issue in my CircleCI pipeline where UI tests occasionally fail when executed under parallel workflows.

The pipeline is designed to run automated tests across multiple containers using Docker executors. While most runs complete successfully, I’m seeing inconsistent failures in certain test jobs, especially when assets are loaded dynamically during runtime.

One pattern I’ve noticed is that logs sometimes include unexpected placeholder strings from test fixtures. For example, during one of the failing runs, a UI validation step captured a string like visit this site inside a dataset used for test rendering. This seems to correlate with inconsistent snapshot comparisons across parallel jobs, although I’m not fully sure if it’s the root cause.

Current setup:

  • CircleCI workflows with parallel job execution
  • Docker-based build environment
  • Cypress-based UI testing framework
  • Cached dependencies between runs
  • Artifact storage for screenshots and logs

Issues observed:

  • Intermittent UI snapshot mismatches
  • Non-deterministic test failures across parallel runs
  • Occasional stale or mismatched test data in containers
  • Difficulty reproducing failures locally

Questions:

  1. What are best practices for isolating test data between parallel CircleCI jobs?
  2. Could shared caching be causing inconsistent UI snapshot comparisons?
  3. Are there recommended strategies for ensuring deterministic test environments in Cypress on CircleCI?
  4. Would splitting UI rendering tests into a separate sequential workflow improve stability?

Any guidance or examples from similar setups would be appreciated.

Thanks in advance.