(key, testState, state)
| 1934 | }; |
| 1935 | |
| 1936 | const getCapabilityTitle = (key, testState, state) => { |
| 1937 | const label = capabilityLabelMap[key] || key; |
| 1938 | const checks = Array.isArray(testState?.checks) ? testState.checks : []; |
| 1939 | const found = checks.find((check) => check.key === key); |
| 1940 | const detail = found && found.message ? `: ${found.message}` : ''; |
| 1941 | if (state === 'ok') return `${label}: OK${detail}`; |
| 1942 | if (state === 'fail') return `${label}: Failed${detail}`; |
| 1943 | if (state === 'skipped') return `${label}: Skipped${detail}`; |
| 1944 | return `${label}: Not tested`; |
| 1945 | }; |
| 1946 | |
| 1947 | const renderCapabilityBadges = (testState) => { |
| 1948 | if (!testState || testState.state === 'idle' || testState.state === 'testing') { |
no outgoing calls
no test coverage detected