Latest Benchmark Benchmark Archive Tesslate AI

Community

Hugging Face Discord

TFrameX

Docs GitHub

Prompt: Social Media Feed Infinite Scroll (FPC006)

Model: Groq-Llama4-Scout | Date: 05/17/2025 | Page Title: Social Media Feed

Prompt Description

Simulate a social media feed (like Twitter/X or Facebook) with posts and **infinite scrolling** to load more posts.

**Page Structure & Features:**
1.  **Main Layout:** Header (simple title), Main content area for the feed, Footer (optional).
2.  **Post Component:** Each post in the feed should display:
    *   User Avatar and Name.
    *   Post Timestamp.
    *   Post Content (text, maybe a placeholder for an image).
    *   Action buttons: 'Like' (with count, toggles `aria-pressed`), 'Comment' (no action needed), 'Share' (no action needed).
    *   Each post identifiable as `data-testid='feed-post-N'`.
    *   Like button on each post: `data-testid='like-btn-postN'`.
3.  **Feed Container (`data-testid='social-feed-container'`):**
    *   Initially load a set of (e.g., 5-10) posts.
    *   **Infinite Scroll:** As the user scrolls towards the bottom of the feed container, new posts should be dynamically fetched (simulated by JS, no actual API call needed, just append more generated post elements) and added to the feed. 
    *   A loading indicator (`data-testid='feed-loading-indicator'`) should be visible while new posts are being 'fetched' and appended.

**Technical & Accessibility Requirements:**
*   Semantic HTML. Posts could be `<article>` elements.
*   The infinite scroll MUST NOT break keyboard navigation or trap focus. Users should still be able to navigate through all loaded posts using the keyboard.
*   New content loaded via infinite scroll should be announced to assistive technologies if possible (e.g., using an `aria-live` region that briefly states 'More posts loaded').
*   The 'Like' button interaction should be fully accessible.
*   The page must be responsive.
*   Styling: Tailwind CSS primarily. Custom JS is essential for the infinite scroll logic, post generation, like button state, and loading indicator.

**Testing Identifiers:**
*   Feed Container: `data-testid='social-feed-container'`
*   An individual Post: `data-testid='feed-post-1'` (example)
*   Like button on a post: `data-testid='like-btn-post1'` (example)
*   Loading Indicator: `data-testid='feed-loading-indicator'`
*   ARIA Live region for new content: `data-testid='feed-update-announcer'` (optional but good)

Key Links & Info

Analysis Timestamp: 05/17/2025 11:46:10

Desktop Screenshot:

Desktop Screenshot of FPC006_Social_Media_Feed_Infinite_Scroll

Mobile Screenshot:

Mobile Screenshot of FPC006_Social_Media_Feed_Infinite_Scroll

Scores for this Prompt

Technical Quality

171.9 / 190.0

(90.47%)

Prompt Adherence

12.0 / 22.0

(54.55%)

Overall Weighted

61.73 %

Technical Quality Breakdown

HTML Structure & Semantics (9.0 / 10.0)

Check Status Message & Data Points Viewport
HTML Lang PASS
PASS
1.0 / 1.0 desktop
Page Title PASS
PASS
1.0 / 1.0 desktop
Main Tag PASS
PASS
1.0 / 1.0 desktop
Nav Tag WARN
No visible <nav>.
0.0 / 1.0 desktop
Footer Tag PASS
PASS
1.0 / 1.0 desktop
H1 Count PASS
PASS
1.0 / 1.0 desktop
Heading Order Logic PASS
PASS
1.0 / 1.0 desktop
Image Alts PASS
PASS
1.0 / 1.0 desktop
Form Labels INFO
No relevant form inputs (INFO).
{
  "unlabeled_count": 0
}
2.0 / 2.0 desktop

CSS Quality (2.0 / 5.0)

Check Status Message & Data Points Viewport
CSS Variables WARN
No :root CSS variables.
0.0 / 2.0 desktop
Modern Layout Body/Main INFO
Flex/Grid not on body/main.
0.0 / 1.0 desktop
Inline Styles PASS
Minimal inline styles.
1.0 / 1.0 desktop
!important Usage PASS
No !important in <style> tags.
1.0 / 1.0 desktop

JavaScript Health (0.0 / 5.0)

Check Status Message & Data Points Viewport
JS Console Errors FAIL
11 JS error(s).
[
  "JS ERROR: file:///C:/Users/Smirk/Documents/Programming/Studio/UIGEN-Benchmark/v4/all_code_outputs/fullpage_challenge/Groq-Llama4-Scout/FPC006_Social_Media_Feed_Infinite_Scroll.html 72 Error: \u003cpath\u003e attribute d:",
  "JS ERROR: file:///C:/Users/Smirk/Documents/Programming/Studio/UIGEN-Benchmark/v4/all_code_outputs/fullpage_challenge/Groq-Llama4-Scout/FPC006_Social_Media_Feed_Infinite_Scroll.html 72 Error: \u003cpath\u003e attribute d:",
  "JS ERROR: file:///C:/Users/Smirk/Documents/Programming/Studio/UIGEN-Benchmark/v4/all_code_outputs/fullpage_challenge/Groq-Llama4-Scout/FPC006_Social_Media_Feed_Infinite_Scroll.html 72 Error: \u003cpath\u003e attribute d:",
  "JS ERROR: file:///C:/Users/Smirk/Documents/Programming/Studio/UIGEN-Benchmark/v4/all_code_outputs/fullpage_challenge/Groq-Llama4-Scout/FPC006_Social_Media_Feed_Infinite_Scroll.html 72 Error: \u003cpath\u003e attribute d:",
  "JS ERROR: file:///C:/Users/Smirk/Documents/Programming/Studio/UIGEN-Benchmark/v4/all_code_outputs/fullpage_challenge/Groq-Llama4-Scout/FPC006_Social_Media_Feed_Infinite_Scroll.html 72 Error: \u003cpath\u003e attribute d:"
]
0.0 / 5.0 desktop

Accessibility (Axe-core) (40.0 / 40.0)

Check Status Message & Data Points Viewport
Axe Violations PASS
No violations.
20.0 / 20.0 desktop
Axe Violations PASS
No violations.
20.0 / 20.0 mobile

Rendered Color & Contrast (30.0 / 30.0)

Check Status Message & Data Points Viewport
Contrast Check Result PASS
All 62 instances meet WCAG AA. (0 only AA, not AAA).
15.0 / 15.0 desktop
Contrast Check Result PASS
All 62 instances meet WCAG AA. (0 only AA, not AAA).
15.0 / 15.0 mobile

Responsiveness (Viewport & Scroll) (16.0 / 20.0)

Check Status Message & Data Points Viewport
Viewport Meta Tag PASS
Configured correctly for responsiveness.
4.0 / 4.0 desktop
Horizontal Scrollbar PASS
No horizontal scrollbar detected.
6.0 / 6.0 desktop
Viewport Meta Tag INFO
Already scored for this prompt.
0.0 / 0.0 mobile
Horizontal Scrollbar PASS
No horizontal scrollbar detected.
6.0 / 6.0 mobile

Performance (Lighthouse) (37.2 / 40.0)

Check Status Message & Data Points Viewport
Lighthouse Score PASS
95/100
19.0 / 20.0 desktop
Lighthouse Score PASS
91/100
18.2 / 20.0 mobile

Accessibility (Lighthouse) (19.0 / 20.0)

Check Status Message & Data Points Viewport
Lighthouse Score PASS
95/100
9.5 / 10.0 desktop
Lighthouse Score PASS
95/100
9.5 / 10.0 mobile

Best Practices (Lighthouse) (9.6 / 10.0)

Check Status Message & Data Points Viewport
Lighthouse Score PASS
96/100
4.8 / 5.0 desktop
Lighthouse Score PASS
96/100
4.8 / 5.0 mobile

SEO (Lighthouse) (9.1 / 10.0)

Check Status Message & Data Points Viewport
Lighthouse Score PASS
91/100
4.5 / 5.0 desktop
Lighthouse Score PASS
91/100
4.5 / 5.0 mobile

Prompt Adherence Breakdown

Check Status Message & Data Points Viewport
Social Feed Container PASS
Element '[data-testid='social-feed-container']' present and visible.
Selector: [data-testid='social-feed-container']
2.0 / 2.0 desktop
Initial Posts Loaded (min 5) PASS
Count is 20 (Actual: 20, Expected: >= 5).
3.0 / 3.0 desktop
Example Like Button PASS
Element '[data-testid^='like-btn-post']' present and visible.
Selector: [data-testid^='like-btn-post']
1.0 / 1.0 desktop
Loading Indicator (may be initially hidden) FAIL
Element '[data-testid='feed-loading-indicator']' present but NOT visible.
Selector: [data-testid='feed-loading-indicator']
0.0 / 2.0 desktop
Like Button Toggles ARIA PASS
All interaction steps/outcomes verified.
4.0 / 4.0 desktop
Infinite Scroll Loads More Posts FAIL
Interaction setup failed: Unknown setup/cleanup action type: get_element_count
0.0 / 8.0 desktop
Loading Indicator Appears During Load (Hard to test precisely) PASS
Custom script evaluation result: True (expected true).
Script Eval: True
1.0 / 1.0 desktop
ARIA Live Announcer (Optional) PASS
Element '[data-testid='feed-update-announcer'][aria-live]' present and visible.
Selector: [data-testid='feed-update-announcer'][aria-live]
1.0 / 1.0 desktop
Social Feed Container PASS
(Points already awarded) Element '[data-testid='social-feed-container']' present and visible.
Selector: [data-testid='social-feed-container']
0.0 / 2.0 mobile
Initial Posts Loaded (min 5) PASS
(Points already awarded) Count is 20 (Actual: 20, Expected: >= 5).
0.0 / 3.0 mobile
Example Like Button PASS
(Points already awarded) Element '[data-testid^='like-btn-post']' present and visible.
Selector: [data-testid^='like-btn-post']
0.0 / 1.0 mobile
Loading Indicator (may be initially hidden) FAIL
Element '[data-testid='feed-loading-indicator']' present but NOT visible.
Selector: [data-testid='feed-loading-indicator']
0.0 / 2.0 mobile
Like Button Toggles ARIA PASS
(Points already awarded) All interaction steps/outcomes verified.
0.0 / 4.0 mobile
Infinite Scroll Loads More Posts FAIL
Interaction setup failed: Unknown setup/cleanup action type: get_element_count
0.0 / 8.0 mobile
Loading Indicator Appears During Load (Hard to test precisely) PASS
(Points already awarded) Custom script evaluation result: True (expected true).
Script Eval: True
0.0 / 1.0 mobile
ARIA Live Announcer (Optional) PASS
(Points already awarded) Element '[data-testid='feed-update-announcer'][aria-live]' present and visible.
Selector: [data-testid='feed-update-announcer'][aria-live]
0.0 / 1.0 mobile

Axe Accessibility Reports (JSON)