From 9e863e6cefd50388c9928850ed23fe3cfafedce1 Mon Sep 17 00:00:00 2001 From: Antoine van der Lee <4329185+AvdLee@users.noreply.github.com> Date: Mon, 27 Jul 2026 14:36:50 +0200 Subject: [PATCH 1/2] seo: add FAQ structured data to the simulator camera doc Rebased onto master (now includes the #1109 retitle) and onto the hardened test harness from #1110. The FAQ block and its test are unchanged in substance from the original branch. --- .../capturing/simulator-camera-support.md | 7 +++++++ docs/tests/build-output.test.js | 20 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/docs/src/content/docs/docs/features/capturing/simulator-camera-support.md b/docs/src/content/docs/docs/features/capturing/simulator-camera-support.md index aa061f84..03fc45cc 100644 --- a/docs/src/content/docs/docs/features/capturing/simulator-camera-support.md +++ b/docs/src/content/docs/docs/features/capturing/simulator-camera-support.md @@ -3,6 +3,13 @@ title: "iOS Simulator Camera: Test Camera Flows Without a Device" description: "The iOS Simulator has no camera by default. RocketSim streams your Mac camera, images, or video into the Simulator so you can test camera flows." sidebar: label: "Simulator Camera Support" +faq: + - question: "Can the iOS Simulator use my Mac's camera?" + answer: "Not on its own. The Simulator has no camera access, so RocketSim Connect streams images or video from your Mac into the Simulator's camera feed instead." + - question: "Do I need a physical iPhone to test camera features?" + answer: "No. RocketSim streams a still image or a video file to the Simulator camera, so you can test scanning, capture, and preview flows without a device." + - question: "Does camera streaming require RocketSim Connect?" + answer: "Yes. The camera feed is delivered through RocketSim Connect, which the recommended setup enables automatically for Xcode debug sessions — no package, framework, or build change required." --- Testing camera flows on the iOS Simulator usually ends with a fallback screen, since the Simulator does not expose a real camera like a physical device. That makes every QR scanner, document scanner, profile photo picker, or video capture flow slower to validate. diff --git a/docs/tests/build-output.test.js b/docs/tests/build-output.test.js index 37463528..6f7f28d6 100644 --- a/docs/tests/build-output.test.js +++ b/docs/tests/build-output.test.js @@ -63,3 +63,23 @@ test("homepage videos stay deferred", () => { const eager = videoTags.filter((tag) => !tag.includes('preload="none"')); assert.deepEqual(eager, [], "every homepage video must keep preload=none"); }); + +test("camera doc emits FAQPage structured data", () => { + const html = readDist( + "docs/features/capturing/simulator-camera-support/index.html", + ); + const blocks = [ + ...html.matchAll( + /