diff --git a/packages/website/e2e/plugins.spec.ts b/packages/website/e2e/plugins.spec.ts index 346183a201..bc6b5ad6d0 100644 --- a/packages/website/e2e/plugins.spec.ts +++ b/packages/website/e2e/plugins.spec.ts @@ -24,6 +24,16 @@ test("scrolls mobile plugin carousels without widening the page", async ({ page await expectPageWithinViewport(page); }); +// Graphite's fixture description ends in raw README HTML with an unbreakable srcset URL. +test("keeps browse grids within a phone's width when a description has an unbreakable word", async ({ + page, +}) => { + await page.setViewportSize({ width: 390, height: 844 }); + await page.goto("/plugins/all"); + await expect(page.getByRole("heading", { level: 1, name: /^All plugins/ })).toBeVisible(); + await expectPageWithinViewport(page); +}); + async function expectPageWithinViewport(page: Page) { expect(await page.evaluate(() => document.documentElement.scrollWidth)).toBeLessThanOrEqual( await page.evaluate(() => document.documentElement.clientWidth), diff --git a/packages/website/e2e/registry.fixture.json b/packages/website/e2e/registry.fixture.json index 6f7cd1b23c..4ad4eabf1b 100644 --- a/packages/website/e2e/registry.fixture.json +++ b/packages/website/e2e/registry.fixture.json @@ -608,7 +608,7 @@ { "id": "tomgrin10/graphite", "name": "Graphite", - "description": "Workspace-native Graphite stack status and PR action radar for Paseo.", + "description": "Workspace-native Graphite stack status and PR action radar for Paseo.

+ // Grid items size to their content by default; min-w-0 keeps the card in its column. +

{plugin.name}

-

+

{plugin.description}