testing-web-responsive

Tests web pages across multiple viewport breakpoints and flags layout issues like horizontal overflow.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/celikgo/webmobai --skill testing-web-responsive-celikgo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: testing-web-responsive
Source: https://github.com/celikgo/webmobai/tree/main/.claude/skills/testing-web-responsive
Command: npx skills add https://github.com/celikgo/webmobai --skill testing-web-responsive-celikgo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Verifying that a site renders correctly on mobile, tablet, and desktop widths is tedious manual work, and layout bugs like horizontal overflow or broken nav menus often ship unnoticed. This Skill automates per-breakpoint screenshot capture and overflow detection so responsive regressions are caught before release. ## Core Features & Use Cases - Responsive Sweep: Runs webmobai_test_responsive across a breakpoint list (default 375×812, 768×1024, 1280×720), capturing captioned screenshots and checking scrollWidth for horizontal overflow per breakpoint. - Per-Breakpoint Interaction Checks: Optionally exercises hamburger navs, modals, forms, and oversized images at each viewport using click, key-press, and DOM evaluation tools. - Auth-Aware Testing: Detects login redirects and supports storage_state_path sessions so gated pages like dashboards are actually tested rather than the login screen. - Use Case: After a CSS refactor touching media queries, ask for a responsive check on your pricing page at iPhone SE, iPad portrait, and 1440p desktop — you get per-breakpoint screenshots, overflow flags, and an HTML report. ## Quick Start Test the responsive layout of https://example.com on mobile, tablet, and desktop breakpoints and generate a report.

Frequently Asked Questions about testing-web-responsive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test responsive layout at multiple breakpoints?▼

Launch a browser, navigate to the target URL, then run the responsive sweep with a breakpoint list such as 375×812, 768×1024, and 1280×720. The tool screenshots each viewport, checks for horizontal overflow, and records a pass or warning result per breakpoint.

What tool checks for horizontal overflow on mobile viewports?▼

The webmobai_test_responsive tool checks whether document.documentElement.scrollWidth exceeds clientWidth at each viewport, flagging horizontal overflow as a warning. Overflow is usually caused by fixed-width images, tables, or embeds missing max-width: 100%.

Does viewport resizing emulate a real mobile device?▼

No. Resizing only changes CSS viewport dimensions — it does not enable touch events, change the User-Agent, throttle CPU or network, or adjust devicePixelRatio. For device emulation, relaunch the browser with a Playwright device preset like iPhone 13 or Pixel 5.

How do I test responsive pages behind a login?▼

Launch the browser with a storage_state_path pointing to a captured authentication session file, then navigate and confirm the final URL is not the login page before running the sweep. Sweeping a login page produces a misleading green result since login pages are trivially responsive.

Why does my responsive test show a false pass?▼

A false pass typically happens when the sweep ran against a login redirect instead of the real page, or when a fixed element visually overflows via transform without increasing scrollWidth. Verify the final URL after navigation and inspect screenshots for elements the scrollWidth check cannot catch.

What are the limitations of viewport-based responsive testing?▼

Viewport resizing cannot test touch gestures like swipe or long-press, does not change window.screen values, and screenshots render at CSS resolution rather than real device pixel density. For real hardware behavior, use a device farm like BrowserStack or a physical device.