test: the label test read half the alignment contract

It asserted the label is block but not the 4px gap, so dropping the
margin -- the half that actually lines an InputForm up with the
DestinationForm beside it -- would still have passed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Roland 2026-08-05 17:05:23 -06:00
parent cd8a777caa
commit ef6c7b805d
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -968,7 +968,7 @@ describe('Form Components', () => {
);
});
it('renders the label as a block above the input', () => {
it('renders the label as a block above the input, with the gap FieldLabel uses', () => {
const form = createMockForm({name: ''});
renderWithProviders(
@ -980,7 +980,9 @@ describe('Form Components', () => {
);
const label = screen.getByText(/Channel Name/).closest('label');
expect(label).toHaveStyle({display: 'block'});
// Both halves of the alignment: without the margin, an InputForm beside a
// DestinationForm starts its input 4px higher.
expect(label).toHaveStyle({display: 'block', marginBottom: '4px'});
});
});