Skip to content

Add Playwright responsiveness tests for laptop, tablet, and mobile#12

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/vscode-mn4x0t5i-z4sc
Draft

Add Playwright responsiveness tests for laptop, tablet, and mobile#12
Copilot wants to merge 2 commits into
mainfrom
copilot/vscode-mn4x0t5i-z4sc

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 24, 2026

The site lacked automated responsiveness coverage — no way to catch layout regressions or overflow issues across device sizes.

Changes

playwright.config.js (new)

Three Chromium-based device projects — all using Chromium to avoid multi-browser installs:

Project Viewport Touch
laptop 1280 × 720
tablet 768 × 1024
mobile 390 × 844

webServer auto-starts vite dev so npm test is self-contained.

tests/responsiveness.spec.js (new)

74 tests across all three profiles covering all 6 routes (/, /about, /projects, /team, /contact, /careers):

  • No horizontal overflowscrollWidth > clientWidth must be false
  • Body width ≤ viewport width — layout stays within bounds
  • Navbar behaviour — desktop nav visible at ≥1024px; hamburger button visible and functional at <1024px; mobile menu open/close cycle
  • Home page.fx-3d-scene present; .main-content fills viewport height
  • Projects — at least one project card element attached
  • Contact — form or contact section attached
  • Screenshots — full-page screenshots attached to HTML report for visual diff

.gitignore

Added test-results/ and playwright-report/ to exclude generated artifacts.

Original prompt

i want you to now check it for responsiveness

use playwright and check the responsiveness for laptop tablets and mobile phones

Created from VS Code.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Check responsiveness for laptop, tablets, and mobile phones Add Playwright responsiveness tests for laptop, tablet, and mobile Mar 24, 2026
Copilot AI requested a review from Anmolgoel29 March 24, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants