diff --git a/packages/core/test/app-flow-ui-capture-mode.test.ts b/packages/core/test/app-flow-ui-capture-mode.test.ts index da0cb9a2..46ce6435 100644 --- a/packages/core/test/app-flow-ui-capture-mode.test.ts +++ b/packages/core/test/app-flow-ui-capture-mode.test.ts @@ -47,6 +47,7 @@ test("the capture mode is persisted when it changes, not when a sweep starts", a .find(entry => entry.textContent === text) as HTMLButtonElement; const trigger = document.querySelector('[aria-label="App Flow capture mode"]') as HTMLElement; assert.ok(trigger, "the toolbar offers the capture mode"); + assert.doesNotMatch(document.body.textContent ?? "", /Sign in to this app/, "structure-only needs no sign-in guidance"); await act(async () => { trigger.click(); }); const option = Array.from(document.querySelectorAll('[role="option"]')) @@ -55,6 +56,10 @@ test("the capture mode is persisted when it changes, not when a sweep starts", a await act(async () => { option.click(); }); assert.equal(storage.getItem("app-flow-mode:/projects/demo"), "screen-ui-and-structure", "the choice is stored before anything is started"); + assert.match(document.body.textContent ?? "", /Sign in to this app, if required/, + "the screen sweep names the app and makes sign-in conditional"); + assert.match(document.body.textContent ?? "", /app under test.+does not require sign-in, you can continue normally/s, + "the guidance distinguishes app authentication from a Mobile Dev requirement"); // What the workspace does when the panel is hidden and shown again, or another tool is picked. await act(async () => { root.unmount(); }); diff --git a/packages/core/test/app-flow-ui-explore-ui.test.ts b/packages/core/test/app-flow-ui-explore-ui.test.ts index 9e553578..4b89ef32 100644 --- a/packages/core/test/app-flow-ui-explore-ui.test.ts +++ b/packages/core/test/app-flow-ui-explore-ui.test.ts @@ -86,6 +86,8 @@ test("App Flow uses adaptive capture and offers AI only for actionable misses", assert.match(guideText, /release build/, "the guide explains what a release build costs"); assert.match(guideText, /deep link/, "the guide explains the deep-link fallback"); assert.match(guideText, /Structure only.+Screen UI \+ Structure/s, "the guide explains both capture modes"); + assert.match(guideText, /If the app requires sign-in, sign in to it first/, + "the guide makes clear that sign-in belongs to the app and is conditional"); // The AI continuation is no longer one click: it lists the eligible screens and starts only the // ones the user ticks, so a model walk is never spent on a screen nobody asked about. diff --git a/packages/ui/src/components/app-flow-view.tsx b/packages/ui/src/components/app-flow-view.tsx index c2b7ce3d..8c3a6fde 100644 --- a/packages/ui/src/components/app-flow-view.tsx +++ b/packages/ui/src/components/app-flow-view.tsx @@ -57,7 +57,7 @@ function AppFlowHelp() {
Map creation
Launching (the walk only)
@@ -257,11 +257,11 @@ export function AppFlowView({ panel }: { panel: AppFlowPanel }) { >}