This is a normal Facebook feed post with enough text to extract.
All: 123 comments2 shares
`);
expect(payload.status).toBe('ok');
expect(payload.rows).toEqual([{
index: 1,
author: 'Alice Example',
content: 'This is a normal Facebook feed post with enough text to extract.',
likes: '12',
comments: '3',
shares: '2',
}]);
});
it('falls back from empty article nodes to action-bounded feed containers', () => {
const payload = runExtract(`
A second post so the container walk stops before the main landmark.
`);
expect(payload.rows[0].author).toBe('Class of 2024');
});
it('does not emit the whole main landmark as one post on a single-post page (#2089)', () => {
const payload = runExtract(`