Skip to content

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

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

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

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 26, 2026

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.

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

Copilot AI left a comment

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 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.

3 participants