mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
23 stars 25 forks source link

Running Cypress locally fails #2143

Open evenstensberg opened 2 months ago

evenstensberg commented 2 months ago

Summary of the bug

All cypress test locally fail.

🪜 How to reproduce

Tell us the steps to reproduce the problem:

  1. Clone the repo
  2. Install & bootstrap (npm i. && npm run bootstrap && npm run build:all && npm run test-cypress)
  3. When test-cypress runs, the first unit tests work, but when comparing visually all fails.

📸 Screenshots or code

Screenshot 2024-07-11 at 21 11 53

🖥 📱 Device

🧐 Expected behaviour

All UI tests should pass

📝 Acceptance Criteria

Given Cypress tests When Running them tests Then it should show all pass-es

Additional info

jd239 commented 2 weeks ago

Hi @evenstensberg. When the visual regression fails, a HTML report is generated. In this instance, the report will appear within the react package > cypress-image-diff-html-report. Can you please provide a screenshot of the threshold values which appear for the failed images? This will give us an indication to what needs amending. Thanks.

evenstensberg commented 2 weeks ago

All thresholds fail. This is because on my mac (M2) it generates snapshots to be matched in 500x500 instead of the 1000x1000 as its in the baseline images. Tried on different machines too (ubuntu).