From c9c3469ce90f5e1cf624a9a97d66fd6db3aba8cb Mon Sep 17 00:00:00 2001
From: Adam Mathes <adam@adammathes.com>
Date: Sat, 14 Feb 2026 09:58:11 -0800
Subject: feature: add scrape full text button to feed items (fixing NK-8hu7z1)

---
 frontend/src/components/FeedItem.test.tsx | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

(limited to 'frontend/src/components/FeedItem.test.tsx')

diff --git a/frontend/src/components/FeedItem.test.tsx b/frontend/src/components/FeedItem.test.tsx
index cb9aafa..4c7d887 100644
--- a/frontend/src/components/FeedItem.test.tsx
+++ b/frontend/src/components/FeedItem.test.tsx
@@ -71,4 +71,22 @@ describe('FeedItem Component', () => {
     expect(listItem).toHaveClass('read');
     expect(listItem).not.toHaveClass('unread');
   });
+
+  it('loads full content', async () => {
+    (global.fetch as any).mockResolvedValueOnce({
+      ok: true,
+      json: async () => ({ ...mockItem, full_content: '<p>Full Content Loaded</p>' }),
+    });
+
+    render(<FeedItem item={mockItem} />);
+
+    const scrapeBtn = screen.getByTitle('Load Full Content');
+    fireEvent.click(scrapeBtn);
+
+    await waitFor(() => {
+      expect(screen.getByText('Full Content Loaded')).toBeInTheDocument();
+    });
+
+    expect(global.fetch).toHaveBeenCalledWith('/api/item/1', expect.anything());
+  });
 });
-- 
cgit v1.2.3

