Adds the Instagram section to the homepage
Shows the handle as a link to the profile and six square photos from edge to edge (2, 3 or 6 per row), each linking to the profile in a new tab. The photos are ones the page already loads, so the section adds no downloads; the API will later fill it with the real feed. Without a valid https link to Instagram the section is left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,4 +34,18 @@ describe('HomeSection', () => {
|
||||
'contact',
|
||||
);
|
||||
});
|
||||
|
||||
it('leaves out the content column at full width', async () => {
|
||||
await renderWithProviders(
|
||||
<HomeSection labelledBy="insta-title" width="full">
|
||||
<h2 id="insta-title" data-testid="child">
|
||||
Instagram
|
||||
</h2>
|
||||
</HomeSection>,
|
||||
);
|
||||
// The heading is a direct child of the section, not of a Container
|
||||
expect(screen.getByTestId('child').parentElement).toBe(
|
||||
screen.getByRole('region', { name: 'Instagram' }),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user