feat(planner): change neutral badge copy to Kein Einfluss
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
data-type="neutral"
|
data-type="neutral"
|
||||||
style="display: inline-block; margin-top: 3px; font-size: 9px; font-weight: 500; padding: 1px 5px; border-radius: 3px; background: var(--yellow-tint); color: var(--yellow-text);"
|
style="display: inline-block; margin-top: 3px; font-size: 9px; font-weight: 500; padding: 1px 5px; border-radius: 3px; background: var(--yellow-tint); color: var(--yellow-text);"
|
||||||
>
|
>
|
||||||
= {delta.toFixed(1)} Punkte
|
Kein Einfluss
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ describe('RecipePicker', () => {
|
|||||||
const alleRezepte = screen.getByTestId('alle-rezepte-section');
|
const alleRezepte = screen.getByTestId('alle-rezepte-section');
|
||||||
const badge = within(alleRezepte).getByTestId('badge-r1');
|
const badge = within(alleRezepte).getByTestId('badge-r1');
|
||||||
expect(badge.getAttribute('data-type')).toBe('neutral');
|
expect(badge.getAttribute('data-type')).toBe('neutral');
|
||||||
expect(badge.textContent).toContain('0.0');
|
expect(badge.textContent).toContain('Kein Einfluss');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Empfohlen shows only positive-delta suggestions, capped at 5', () => {
|
it('Empfohlen shows only positive-delta suggestions, capped at 5', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user