Skip to content

Fix DF 529: location cosmetics #1140

Fix DF 529: location cosmetics

Fix DF 529: location cosmetics #1140

Triggered via pull request November 20, 2025 13:26
Status Failure
Total duration 3m 20s
Artifacts 3

check-pull-request.yml

on: pull_request
Matrix: build
Matrix: tasks
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
Unit tests (Node 24)
Process completed with exit code 1.
OsGridRefField › Defaults › Schema › uses component title as label as default: src/server/plugins/engine/components/OsGridRefField.test.ts#L44
expect(received).toHaveProperty(path, value) Expected path: "myComponent" - Expected value - 3 + Received value + 27 - ObjectContaining { - "flags": ObjectContaining { - "label": "Example OS grid reference", + Object { + "flags": Object { + "default": "", + "label": "OS grid reference", + "presence": "required", + }, + "preferences": Object { + "messages": Object { + "any.required": "Enter {{#title}}", + "string.empty": "Enter {{#title}}", + "string.pattern.base": "Enter a valid OS grid reference for {{#title}} like TQ123456", + }, + }, + "rules": Array [ + Object { + "args": Object { + "enabled": true, + }, + "name": "trim", + }, + Object { + "args": Object { + "regex": "/^((([sS]|[nN])[a-hA-Hj-zJ-Z])|(([tT]|[oO])[abfglmqrvwABFGLMQRVW])|([hH][l-zL-Z])|([jJ][lmqrvwLMQRVW]))\\s?(([0-9]{3})\\s?([0-9]{3})|([0-9]{4})\\s?([0-9]{4})|([0-9]{5})\\s?([0-9]{5}))$/", + }, + "name": "pattern", }, + ], + "type": "string", } at Object.toHaveProperty (src/server/plugins/engine/components/OsGridRefField.test.ts:44:22)
Unit tests (Node 22)
Process completed with exit code 1.
OsGridRefField › Defaults › Schema › uses component title as label as default: src/server/plugins/engine/components/OsGridRefField.test.ts#L44
expect(received).toHaveProperty(path, value) Expected path: "myComponent" - Expected value - 3 + Received value + 27 - ObjectContaining { - "flags": ObjectContaining { - "label": "Example OS grid reference", + Object { + "flags": Object { + "default": "", + "label": "OS grid reference", + "presence": "required", + }, + "preferences": Object { + "messages": Object { + "any.required": "Enter {{#title}}", + "string.empty": "Enter {{#title}}", + "string.pattern.base": "Enter a valid OS grid reference for {{#title}} like TQ123456", + }, + }, + "rules": Array [ + Object { + "args": Object { + "enabled": true, + }, + "name": "trim", + }, + Object { + "args": Object { + "regex": "/^((([sS]|[nN])[a-hA-Hj-zJ-Z])|(([tT]|[oO])[abfglmqrvwABFGLMQRVW])|([hH][l-zL-Z])|([jJ][lmqrvwLMQRVW]))\\s?(([0-9]{3})\\s?([0-9]{3})|([0-9]{4})\\s?([0-9]{4})|([0-9]{5})\\s?([0-9]{5}))$/", + }, + "name": "pattern", }, + ], + "type": "string", } at Object.toHaveProperty (src/server/plugins/engine/components/OsGridRefField.test.ts:44:22)
Unit tests (Node 23)
Process completed with exit code 1.
OsGridRefField › Defaults › Schema › uses component title as label as default: src/server/plugins/engine/components/OsGridRefField.test.ts#L44
expect(received).toHaveProperty(path, value) Expected path: "myComponent" - Expected value - 3 + Received value + 27 - ObjectContaining { - "flags": ObjectContaining { - "label": "Example OS grid reference", + Object { + "flags": Object { + "default": "", + "label": "OS grid reference", + "presence": "required", + }, + "preferences": Object { + "messages": Object { + "any.required": "Enter {{#title}}", + "string.empty": "Enter {{#title}}", + "string.pattern.base": "Enter a valid OS grid reference for {{#title}} like TQ123456", + }, + }, + "rules": Array [ + Object { + "args": Object { + "enabled": true, + }, + "name": "trim", + }, + Object { + "args": Object { + "regex": "/^((([sS]|[nN])[a-hA-Hj-zJ-Z])|(([tT]|[oO])[abfglmqrvwABFGLMQRVW])|([hH][l-zL-Z])|([jJ][lmqrvwLMQRVW]))\\s?(([0-9]{3})\\s?([0-9]{3})|([0-9]{4})\\s?([0-9]{4})|([0-9]{5})\\s?([0-9]{5}))$/", + }, + "name": "pattern", }, + ], + "type": "string", } at Object.toHaveProperty (src/server/plugins/engine/components/OsGridRefField.test.ts:44:22)
Vulnerability warning
This version of the SonarQube Scanner GitHub Action is no longer supported and contains a security vulnerability. Please update your workflow to use sonarsource/sonarqube-scan-action@v6 for the latest security patches and features. For more information visit https://community.sonarsource.com/gha-v6-update

Artifacts

Produced during runtime
Name Size Digest
Unit tests coverage (Node 22) Expired
679 KB
sha256:94ffbb3b5be443d72b2185dd7d8031c59d55ce526d7dd3d714d4a9ba286702ce
Unit tests coverage (Node 23) Expired
679 KB
sha256:c4170f1ce5c000e67292cd95fb6b67437ed10e7a725091fed469cf7da2485098
Unit tests coverage (Node 24) Expired
679 KB
sha256:a1ba02a4e42bd9bd138170b62f26b24930290304746a5aa0545a31c054bce552