mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2026-05-24 16:00:16 -04:00
* 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>
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
- Create a folder, e.g.
./test/rendering/listbox - 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
- Run tests from the nebula.js root with
yarn test:rendering - The first time, the test will fail and create an image inside of the
__artifacts__/tempfolder. Drag this file to the__artifacts__/baselinefolder and re-run the test to verify that it passes. Thengit pushthe 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 herebaseline- new screenshots are compared to the baseline version of the image, in order to check validity – only update these if a change is expectedregression- 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