Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/app/components/Billboard/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,23 @@ describe('Billboard', () => {
maskedImageSpy.mockRestore();
});

it('includes an 800w resolution in the srcset', () => {
render(
<Billboard
heading={title}
description={description}
link={link}
image={imageUrl}
altText={imageAlt}
prominence={VISUAL_PROMINENCE.HIGH}
/>,
);

const image = screen.getByAltText(imageAlt);
const srcset = image.getAttribute('srcset');
expect(srcset).toContain('800w');
});

it('renders the curation grid when promo items are present', () => {
const maskedImageSpy = jest.spyOn(MaskedImage, 'default');

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Billboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface BillboardProps {
summaries?: Summary[];
}

const IMAGE_WIDTH = 660;
const IMAGE_WIDTH = 800;
const DEFAULT_IMAGE_RES = 480;

export default ({
Expand Down
Loading