Latest Benchmark Benchmark Archive Tesslate AI

Community

Hugging Face Discord

TFrameX

Docs GitHub

Prompt: Social Media Feed Infinite Scroll (FPC006)

Model: Groq-Gemma2-9b | Date: 05/17/2025 | Page Title: Social 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

150.7 / 190.0

(79.32%)

Prompt Adherence

8.0 / 22.0

(36.36%)

Overall Weighted

44.95 %

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
1 JS error(s).
[
  "JS ERROR: https://via.placeholder.com/50 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED"
]
0.0 / 5.0 desktop

Accessibility (Axe-core) (30.0 / 40.0)

Check Status Message & Data Points Viewport
Axe Violations FAIL
1 Axe violations (Crit:0,Ser:1,Mod:0,Min:0). Report: axe_report_FPC006_Social_Media_Feed_Infinite_Scroll_desktop.json
[
  {
    "help": "Elements must have sufficient color contrast",
    "id": "color-contrast",
    "impact": "serious"
  }
]
15.0 / 20.0 desktop
Axe Violations FAIL
1 Axe violations (Crit:0,Ser:1,Mod:0,Min:0). Report: axe_report_FPC006_Social_Media_Feed_Infinite_Scroll_mobile.json
[
  {
    "help": "Elements must have sufficient color contrast",
    "id": "color-contrast",
    "impact": "serious"
  }
]
15.0 / 20.0 mobile

Rendered Color & Contrast (20.0 / 30.0)

Check Status Message & Data Points Viewport
Contrast Suboptimal (AAA) INFO
AAA WARN 4.83 for '1 hour ago' in <p class='text-gray-500 text-sm'>
{
  "ratio": 4.834490081424352
}
0.0 / 0.0 desktop
Contrast Failure (AA) FAIL
AA FAIL 3.68 for 'Like 10' in <button data-testid='like-btn-post-1' class='bg-blue-500 hover:bg-blue-700 ...'>
{
  "bg_eff": "rgb(59, 130, 246)",
  "fg": "rgb(255, 255, 255)",
  "ratio": 3.6779011537825332,
  "text": "Like 10"
}
0.0 / 0.0 desktop
Contrast Failure (AA) FAIL
AA FAIL 1.31 for '10' in <span class='text-gray-500'>
{
  "bg_eff": "rgb(59, 130, 246)",
  "fg": "rgb(107, 114, 128)",
  "ratio": 1.3144698237613934,
  "text": "10"
}
0.0 / 0.0 desktop
Contrast Check Result FAIL
2 WCAG AA failures on 9 instances.
10.0 / 15.0 desktop
Contrast Suboptimal (AAA) INFO
AAA WARN 4.83 for '1 hour ago' in <p class='text-gray-500 text-sm'>
{
  "ratio": 4.834490081424352
}
0.0 / 0.0 mobile
Contrast Failure (AA) FAIL
AA FAIL 3.68 for 'Like 10' in <button data-testid='like-btn-post-1' class='bg-blue-500 hover:bg-blue-700 ...'>
{
  "bg_eff": "rgb(59, 130, 246)",
  "fg": "rgb(255, 255, 255)",
  "ratio": 3.6779011537825332,
  "text": "Like 10"
}
0.0 / 0.0 mobile
Contrast Failure (AA) FAIL
AA FAIL 1.31 for '10' in <span class='text-gray-500'>
{
  "bg_eff": "rgb(59, 130, 246)",
  "fg": "rgb(107, 114, 128)",
  "ratio": 1.3144698237613934,
  "text": "10"
}
0.0 / 0.0 mobile
Contrast Check Result FAIL
2 WCAG AA failures on 9 instances.
10.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) (36.2 / 40.0)

Check Status Message & Data Points Viewport
Lighthouse Score WARN
89/100
17.8 / 20.0 desktop
Lighthouse Score PASS
92/100
18.4 / 20.0 mobile

Accessibility (Lighthouse) (18.8 / 20.0)

Check Status Message & Data Points Viewport
Lighthouse Score PASS
94/100
9.4 / 10.0 desktop
Lighthouse Score PASS
94/100
9.4 / 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) FAIL
Count is 1 (Actual: 1, Expected: >= 5).
0.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) FAIL
Element '[data-testid='feed-update-announcer'][aria-live]' NOT found.
Selector: [data-testid='feed-update-announcer'][aria-live]
0.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) FAIL
Count is 1 (Actual: 1, 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) FAIL
Element '[data-testid='feed-update-announcer'][aria-live]' NOT found.
Selector: [data-testid='feed-update-announcer'][aria-live]
0.0 / 1.0 mobile

Axe Accessibility Reports (JSON)