mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
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:
parent
cd8a777caa
commit
ef6c7b805d
1 changed files with 4 additions and 2 deletions
|
|
@ -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'});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue