diff --git a/web/app/components/plugins/marketplace/home/__tests__/home-catalog-handoff.browser.spec.tsx b/web/app/components/plugins/marketplace/home/__tests__/home-catalog-handoff.browser.spec.tsx index eefefafa3d5..8c07de518af 100644 --- a/web/app/components/plugins/marketplace/home/__tests__/home-catalog-handoff.browser.spec.tsx +++ b/web/app/components/plugins/marketplace/home/__tests__/home-catalog-handoff.browser.spec.tsx @@ -208,7 +208,7 @@ describe('Marketplace catalog tab handoff', () => { expect(headerTabsSlot).toHaveAttribute('inert') expect( contentTabsSlot.getBoundingClientRect().top - scrollContainer.getBoundingClientRect().top, - ).toBeCloseTo(72) + ).toBeCloseTo(108) await page.viewport(880, 800) await vi.waitFor(() => { diff --git a/web/app/components/plugins/marketplace/home/__tests__/home-search-mobile-layout.browser.spec.tsx b/web/app/components/plugins/marketplace/home/__tests__/home-search-mobile-layout.browser.spec.tsx index 5596c641fb8..7902cb2858c 100644 --- a/web/app/components/plugins/marketplace/home/__tests__/home-search-mobile-layout.browser.spec.tsx +++ b/web/app/components/plugins/marketplace/home/__tests__/home-search-mobile-layout.browser.spec.tsx @@ -30,34 +30,45 @@ const nextFrame = () => requestAnimationFrame(() => requestAnimationFrame(() => resolve())) }) -describe('Marketplace mobile search layout', () => { - it('keeps the sticky header brand and actions above the search while scrolling', async () => { - await page.viewport(390, 844) +const overlaps = (a: DOMRect, b: DOMRect) => + a.left < b.right && a.right > b.left && a.top < b.bottom && a.bottom > b.top - const screen = await render( -