When comparing PDF screenshots, we can have some minor differences due to the different environments (OS, fonts, etc.). To avoid false positives in our regression tests, we can set a threshold for the number of different pixels allowed before considering the test as failed. If the test fails we will now report the PDF and the differences to identify quickly what are the regressions.
33 lines
870 B
JSON
33 lines
870 B
JSON
{
|
|
"name": "app-e2e",
|
|
"version": "4.5.0",
|
|
"repository": "https://github.com/suitenumerique/docs",
|
|
"author": "DINUM",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"scripts": {
|
|
"lint": "eslint",
|
|
"install-playwright": "playwright install --with-deps",
|
|
"test": "playwright test",
|
|
"test:ui": "yarn test --ui",
|
|
"test:ui::firefox": "yarn test:ui --project=firefox",
|
|
"test:ui::webkit": "yarn test:ui --project=webkit",
|
|
"test:ui::chromium": "yarn test:ui --project=chromium"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.57.0",
|
|
"@types/node": "*",
|
|
"@types/pdf-parse": "1.1.5",
|
|
"eslint-plugin-docs": "*",
|
|
"typescript": "*"
|
|
},
|
|
"dependencies": {
|
|
"@types/pngjs": "6.0.5",
|
|
"convert-stream": "1.0.2",
|
|
"pdf-parse": "2.4.5",
|
|
"pixelmatch": "7.1.0",
|
|
"pngjs": "7.0.0"
|
|
},
|
|
"packageManager": "yarn@1.22.22"
|
|
}
|