Files
renovate[bot] 357a5863a9 chore(deps): update material-ui monorepo to v7 (major) (#1598)
* fix(deps): update dependency webpack-cli to v7 (#1935)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update minor and patch (#1934)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: re-run spec (#1938)

* Potential fix for code scanning alert no. 98: Overly permissive regular expression range (#1936)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* fix: align requirements better with client (#1937)

* fix: aline requirements better with client

* fix: remove comment

* chore: fix for empty dims

* fix: prototype pollution vulnerabilities in json-patch.js (#1941)

* Initial plan

* Fix prototype pollution security vulnerabilities in json-patch.js

Co-authored-by: Caele <6318307+Caele@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Caele <6318307+Caele@users.noreply.github.com>

* chore: normalize yarn resolutions for renovate compatibility (#1943)

* chore: avoid renovate resolution lookup warnings

* chore: dedupe yarn resolutions and normalize ranges

Signed-off-by: Johan Enell <johan.enell@qlik.com>

---------

Signed-off-by: Johan Enell <johan.enell@qlik.com>

* fix(deps): update dependency puppeteer to v24.40.0 (#1947)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update material-ui monorepo to v7

* chore: perfrom mui v7 migration

* chore: store test results

* chore: adjust artifact storage

* chore: fix lint

* chore: fix report folder

* chore: fix classnames

---------

Signed-off-by: Johan Enell <johan.enell@qlik.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tobias Åström <tsm@qlik.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Caele <6318307+Caele@users.noreply.github.com>
Co-authored-by: Johan Enell <johan.enell@qlik.com>
2026-03-24 13:25:13 +01:00
..
2025-06-21 14:24:52 +02:00

Rendering tests

These tests are aimed for more generic rendering tests than the mashup and integration counterparts. These tests do not rely on a Supernova or custom backend solution for producing screenshots. If you want to test a Supernova based viz, you should instead create either a mashup or an integration test.

Tests covered (so far)

Create and run tests

  1. Create a folder, e.g. ./test/rendering/listbox
  2. Inside that folder, create:
    • listbox.spec.js - a test file which orchestrates interactions and when to take a screenshot
    • listbox.html - constitutes the "site" that the test file interacts with and creates screenshots from
    • listbox.js - (optional) if you don't want to add all JS code inside of the html file
  3. Run tests from the nebula.js root with yarn test:rendering
  4. The first time, the test will fail and create an image inside of the __artifacts__/temp folder. Drag this file to the __artifacts__/baseline folder and re-run the test to verify that it passes. Then git push the baseline.

Check the listbox files for details on how to write the code in these files.

Output folders

Screenshots are stored in the following folders:

  • temp - new screenshots are stored here
  • baseline - new screenshots are compared to the baseline version of the image, in order to check validity only update these if a change is expected
  • regression - new screenshots are saved here when deviating too much (i.e. when they are invalid)
  • diff - the difference between the baseline and the regression image