Move over some updates to tests from D1495

This commit is contained in:
Kuba Orlik 2024-06-01 20:23:06 +02:00
parent 561b73eb5e
commit 5e870a5cf4
6 changed files with 41 additions and 34 deletions

7
package-lock.json generated
View File

@ -22,7 +22,7 @@
"escape-goat": "^4.0.0",
"get-port": "^7.0.0",
"js-convert-case": "^4.2.0",
"koa-responsive-image-router": "^0.2.24",
"koa-responsive-image-router": "^0.2.29",
"locreq": "^3.0.0",
"multiple-scripts-tmux": "^1.0.4",
"nodemon": "^3.0.1",
@ -5684,8 +5684,9 @@
}
},
"node_modules/koa-responsive-image-router": {
"version": "0.2.24",
"license": "ISC",
"version": "0.2.29",
"resolved": "https://registry.npmjs.org/koa-responsive-image-router/-/koa-responsive-image-router-0.2.29.tgz",
"integrity": "sha512-siYb1CtGDJLOTYBmKIcofy4nHdY49xMHhHYMk1EmW2sY2YGkjHUOu/YINfSbSffja0ECiS2ULdOs4AgvArBVUA==",
"dependencies": {
"@koa/router": "^10.0.0",
"@sealcode/ts-predicates": "^0.5.3",

View File

@ -15,7 +15,7 @@
"postbuild": "npm run typecheck && npm run lint",
"watch": "multiple-scripts-tmux -p watch",
"reset-db": "docker-compose down && docker-compose up -d",
"install-test-deps": "npx playwright install firefox && cd webhint && npm install",
"install-test-deps": "npx playwright install firefox && cd webhint && npm install && ./use-fork.sh",
"pretest": "npm run build && docker-compose up -d",
"test": "node test.cjs",
"prepare": "npm run build && npm run install-test-deps",
@ -51,7 +51,7 @@
"escape-goat": "^4.0.0",
"get-port": "^7.0.0",
"js-convert-case": "^4.2.0",
"koa-responsive-image-router": "^0.2.24",
"koa-responsive-image-router": "^0.2.29",
"locreq": "^3.0.0",
"multiple-scripts-tmux": "^1.0.4",
"nodemon": "^3.0.1",

View File

@ -35,6 +35,7 @@ export function ComponentInputImage<State extends JDDPageState>({
container: { width: 40, height: 40, objectFit: "cover" },
crop: { width: 40, height: 40 },
style: "height: 40px; width: 40px;",
alt: "",
})}
<input
type="file"

View File

@ -14,7 +14,7 @@
"@hint/hint-doctype": "^3.3.26",
"@hint/hint-no-broken-links": "^4.2.26",
"@hint/utils-dom": "^2.2.4",
"hint": "^7.1.10"
"hint": "^7.1.11"
}
},
"node_modules/@aashutoshrathi/word-wrap": {
@ -40,9 +40,9 @@
}
},
"node_modules/@hint/configuration-development": {
"version": "8.3.18",
"resolved": "https://registry.npmjs.org/@hint/configuration-development/-/configuration-development-8.3.18.tgz",
"integrity": "sha512-E2ZWaIxsV8vuVfEqvYp8nToCaiqZKfp+/zj2knGpaYOdaEfaBDyDzv+RRtHurt/C7ElR43yDiNCqRk2m3YfP+g==",
"version": "8.3.19",
"resolved": "https://registry.npmjs.org/@hint/configuration-development/-/configuration-development-8.3.19.tgz",
"integrity": "sha512-aDrn58/M7PAlhlBrW12V7QybjARwXYCU68OIKY/e2/6Q5e8qKz/7Ba9BjvL1Ngg8MJCfR1Ai+Uq65spjFAMzhA==",
"optional": true,
"dependencies": {
"@hint/configuration-accessibility": "^2.0.27",
@ -67,8 +67,8 @@
"@hint/hint-no-protocol-relative-urls": "^3.1.6",
"@hint/hint-scoped-svg-styles": "^1.3.27",
"@hint/hint-sri": "^4.0.22",
"@hint/hint-typescript-config": "^2.5.14",
"@hint/hint-webpack-config": "^2.4.28",
"@hint/hint-typescript-config": "^2.5.15",
"@hint/hint-webpack-config": "^2.4.29",
"@hint/parser-babel-config": "^2.1.42",
"@hint/parser-css": "^3.0.39",
"@hint/parser-html": "^3.1.4",
@ -77,7 +77,7 @@
"@hint/parser-less": "^1.0.31",
"@hint/parser-sass": "^1.0.31",
"@hint/parser-typescript": "^1.0.25",
"@hint/parser-typescript-config": "^2.4.29",
"@hint/parser-typescript-config": "^2.4.30",
"@hint/parser-webpack-config": "^2.1.41"
},
"peerDependencies": {
@ -869,9 +869,9 @@
}
},
"node_modules/@hint/hint-typescript-config": {
"version": "2.5.14",
"resolved": "https://registry.npmjs.org/@hint/hint-typescript-config/-/hint-typescript-config-2.5.14.tgz",
"integrity": "sha512-L1s6wf88DbMl/8b7hyofXb/asxxpwI+KaZTiiGp3dfuXTwASPizdJH01bJidtXGZUh5bj0Z9BN82Zut72lhxLw==",
"version": "2.5.15",
"resolved": "https://registry.npmjs.org/@hint/hint-typescript-config/-/hint-typescript-config-2.5.15.tgz",
"integrity": "sha512-3e3r355VGs7tHn0ZS/sNvGIGW9ePkGUh3IM4+/8QFxo9hFGpd2tTfw54gIxQRh0Bshoid092D4wAxU00QYPu1w==",
"optional": true,
"dependencies": {
"@hint/utils": "^7.0.23",
@ -900,9 +900,9 @@
}
},
"node_modules/@hint/hint-webpack-config": {
"version": "2.4.28",
"resolved": "https://registry.npmjs.org/@hint/hint-webpack-config/-/hint-webpack-config-2.4.28.tgz",
"integrity": "sha512-6C0SSstKI38/6+ApAtKCJaQF+S6ZbdLkfZsv1NFabwIQjJqdTqPTSQxsDwwLuF+bwHzbH70KbgvBmBwKkgCdig==",
"version": "2.4.29",
"resolved": "https://registry.npmjs.org/@hint/hint-webpack-config/-/hint-webpack-config-2.4.29.tgz",
"integrity": "sha512-lYGxPZHon7U+pQpXYu5jIuMcACFb4pz7VDau//v5H8I3+JwACVXiSu1/iH1xDwYZeKNAdw83ywsqVUrcb+MHRA==",
"optional": true,
"dependencies": {
"@hint/utils-debug": "^1.0.11",
@ -1066,9 +1066,9 @@
}
},
"node_modules/@hint/parser-typescript-config": {
"version": "2.4.29",
"resolved": "https://registry.npmjs.org/@hint/parser-typescript-config/-/parser-typescript-config-2.4.29.tgz",
"integrity": "sha512-OtC9X12uW/7OMFnTp6Mi7VMMkgHCUgnXZ2+/615zr5nUU6gvXo5Ot1IP2mIQTSC/IC18zGcMfpvASYBZWKiHnw==",
"version": "2.4.30",
"resolved": "https://registry.npmjs.org/@hint/parser-typescript-config/-/parser-typescript-config-2.4.30.tgz",
"integrity": "sha512-t4j20cK7GK2tQaCI8b7cApomkPbx6B10agEsV0TJ/RJMBhxkyIN8ZVePp+9dHLKgSt1WbFoT/KJTw5MVj2oCbQ==",
"optional": true,
"dependencies": {
"@hint/utils-fs": "^1.0.16",
@ -1594,14 +1594,14 @@
}
},
"node_modules/ajv": {
"version": "8.12.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
"integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
"version": "8.14.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.14.0.tgz",
"integrity": "sha512-oYs1UUtO97ZO2lJ4bwnWeQW8/zvOIQLGKcvPTsWmvc2SYgBb+upuNS5NxoLaMU4h8Ju3Nbj6Cq8mD2LQoqVKFA==",
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-deep-equal": "^3.1.3",
"json-schema-traverse": "^1.0.0",
"require-from-string": "^2.0.2",
"uri-js": "^4.2.2"
"uri-js": "^4.4.1"
},
"funding": {
"type": "github",
@ -3201,9 +3201,9 @@
}
},
"node_modules/hint": {
"version": "7.1.10",
"resolved": "https://registry.npmjs.org/hint/-/hint-7.1.10.tgz",
"integrity": "sha512-gj4U/r12isA0s3uFdTmCT0VAidjjgsXUbjN4xTd66PbQ8cMFDPTWDv6CwOn5NBXj5gi7RcRTnw1Etp17qzg4FQ==",
"version": "7.1.11",
"resolved": "https://registry.npmjs.org/hint/-/hint-7.1.11.tgz",
"integrity": "sha512-Z4+Bv5tNLbb6un0ScqHbDRTT5DpW1ttyftfuhDGncnkcachJjqhOqRjFqI9bfmqs5B4FgOT3Jn2vRC+GOHB3Ug==",
"dependencies": {
"@hint/utils": "^7.0.23",
"@hint/utils-debug": "^1.0.11",
@ -3231,7 +3231,7 @@
"node": ">=14.0.0"
},
"optionalDependencies": {
"@hint/configuration-development": "^8.3.18",
"@hint/configuration-development": "^8.3.19",
"@hint/configuration-web-recommended": "^8.2.23"
}
},
@ -5943,9 +5943,9 @@
}
},
"node_modules/typescript": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
"integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
"version": "5.4.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
"optional": true,
"peer": true,
"bin": {

View File

@ -14,7 +14,7 @@
"@hint/formatter-codeframe": "^3.1.35",
"@hint/hint-doctype": "^3.3.26",
"@hint/hint-no-broken-links": "^4.2.26",
"hint": "^7.1.10",
"hint": "^7.1.11",
"@hint/utils-dom": "^2.2.4"
}
}

5
webhint/use-fork.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
# Using the fork manually until https://github.com/webhintio/hint/pull/5876 is landed
wget https://cdn.sealco.de/file/download/lsx3pa5guz2udjaaqowg/PHID-FILE-bnqnugnra4kiielhumvr/axe.js --output-document node_modules/@hint/hint-axe/dist/src/util/axe.js