Skip to content

Remove unused devices import in docs/test-mobile.mjs - #23060

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-code-scanning-alert-495
Mar 26, 2026
Merged

Remove unused devices import in docs/test-mobile.mjs#23060
pelikhan merged 2 commits into
mainfrom
copilot/fix-code-scanning-alert-495

Conversation

CopilotAI commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

CodeQL alert #495 flagged an unused devices import in docs/test-mobile.mjs. The file defines its own inline iPhone16 viewport object rather than using Playwright's built-in device descriptors.

Change

  • docs/test-mobile.mjs: Drop devices from the playwright import destructuring.
-import { chromium, devices } from 'playwright';+import { chromium } from 'playwright';

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

CopilotAI changed the title [WIP] Fix code scanning alert 495Remove unused devices import in docs/test-mobile.mjsMar 26, 2026
CopilotAI requested a review from pelikhanMarch 26, 2026 06:25
@pelikhan
pelikhan marked this pull request as ready for review March 26, 2026 06:26
CopilotAI review requested due to automatic review settings March 26, 2026 06:26
@pelikhan
pelikhan merged commit 047be78 into mainMar 26, 2026
@pelikhan
pelikhan deleted the copilot/fix-code-scanning-alert-495 branch March 26, 2026 06:26

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes an unused Playwright devices import from the mobile docs test script to address a CodeQL alert.

Changes:

  • Drop devices from the playwright import in docs/test-mobile.mjs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for freeto 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.

3 participants

@pelikhan