Analyse: Sperre im WOMS kenntlich machen

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-01 10:40:06 +00:00
1 parent 0cec45d3da
commit 8ecf07fecd
3 files changed
+7 -2

No files matched your search

+4
View File
@@ -32,6 +32,10 @@ test('analyseStatus: aus und berechtigt => Einschalten moeglich', () => {
test('analyseStatus: gesperrt', () => {
const s = analyseStatus({ enabled: true, state: 'disabled', eligible: true })
assert.equal(s.text, 'Gesperrt')
assert.equal(s.canEnable, true)
assert.equal(s.enableLabel, 'Trotz Sperre einschalten')
assert.equal(s.hint, 'Vom Team gesperrt')
assert.equal(analyseStatus({ enabled: true, state: 'disabled', eligible: false }).canEnable, false)
})
test('analyseStatus: nicht berechtigt => Grund, kein Button', () => {