The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
fix(mobile): turn the scan page hints into steps
tonyf2a8a32b7d52
diff --git a/mobile/lib/phone/welcome/phone_welcome.dart b/mobile/lib/phone/welcome/phone_welcome.dartindex b6cfa3971..e736063d5 100644--- a/mobile/lib/phone/welcome/phone_welcome.dart+++ b/mobile/lib/phone/welcome/phone_welcome.dart@@ -110,12 +110,13 @@ class _PhoneWelcomeState extends State<PhoneWelcome> {/// following on it — had to find their way back to them._Step _scanFrom = _Step.hello;- /// Under the scan page's hint. A desktop app opens signed out (its guest mode), and its Add Phone- /// then shows no code, only "Sign in to add your phone." beside a Sign in… button. Google or- /// Apple by name: the sign-in's third way, "Scan with your phone", needs a phone already signed- /// in. Two lines at most — it shares the page with the camera.+ /// The scan page's step 1, ahead of opening Add Phone… — a step, not a note under the hint: a+ /// desktop app opens signed out (its guest mode), and its Add Phone then shows no code, only+ /// "Sign in to add your phone." beside a Sign in… button. Google or Apple by name: the sign-in's+ /// third way, "Scan with your phone", needs a phone already signed in. Two lines at most — it+ /// shares the page with the camera.static const _signInThereFirst =- 'Computer asks you to sign in? Sign in there with Google or Apple first.';+ 'On your computer, sign in to Harness with Google or Apple.';String? _error;int _resendIn = 0;@@ -380,7 +381,7 @@ class _PhoneWelcomeState extends State<PhoneWelcome> {widget.notifier.pendingComputerSignIn = code.code;_go(_Step.signInFirst);},- note: _signInThereFirst,+ firstStep: _signInThereFirst,signingIn: _signingInWithScan,onUseEmail: () => _go(_Step.email),onBack: () => _go(_backFrom(_Step.scan)),@@ -855,14 +856,26 @@ class _OrDivider extends StatelessWidget {Widget build(BuildContext context) {final tty = Tty.of(context);final rule = Expanded(child: Container(height: 1, color: tty.dim));+ // Its own width, and the rules give way around it — up to most of the screen's. ⚠️ Past that+ // it wraps: one unbreakable line overflowed a small phone at the app's largest text size (2x)+ // in a face whose letters run wider than SF Mono's. Capped by the screen, not a LayoutBuilder:+ // the first screen is measured for its height (`IntrinsicHeight`), which a LayoutBuilder+ // cannot answer.return Row(children: [rule,- // Its own width: at the app's largest text size (2x) it is still well inside a 375pt- // phone, and the rules give way around it.- Padding(- padding: const EdgeInsets.symmetric(horizontal: 10),- child: TtyText(label, color: tty.faint, size: TtySize.meta),+ ConstrainedBox(+ constraints: BoxConstraints(+ maxWidth: MediaQuery.sizeOf(context).width * 0.7,+ ),+ child: Padding(+ padding: const EdgeInsets.symmetric(horizontal: 10),+ child: Text(+ label,+ textAlign: TextAlign.center,+ style: tty.style(color: tty.faint, size: TtySize.meta),+ ),+ ),),rule,],diff --git a/mobile/lib/phone/welcome/scan_to_connect.dart b/mobile/lib/phone/welcome/scan_to_connect.dartindex e17b569ff..fe8277127 100644--- a/mobile/lib/phone/welcome/scan_to_connect.dart+++ b/mobile/lib/phone/welcome/scan_to_connect.dart@@ -1,5 +1,6 @@import 'dart:async';import 'dart:io' show Platform;+import 'dart:math' as math;import 'package:flutter/material.dart';import 'package:flutter/services.dart';@@ -17,9 +18,11 @@ import 'connect_code.dart';/// Where Add Phone… is on the computer, for somebody who has never opened it. The Mac keeps it in/// the Harness menu; the desktop app's Linux menu strip has no row for it, so there it is the/// command palette's (`navigation.commands`, Ctrl+Shift+P, finds the "Add phone" command).+///+/// Under the step that names Add Phone… ([ScanToConnectPage.step]), so each line says only where.const kAddPhoneWhere =- 'On a Mac: Harness menu ▸ Add Phone…\n'- 'On Linux: Ctrl+Shift+P, then “add phone”';+ 'Mac: Harness menu ▸ Add Phone…\n'+ 'Linux: Ctrl+Shift+P, then “add phone”';/// **Yes — scan to connect**: the camera, reading the code the desktop app shows under/// Harness ▸ Add Phone… ([ConnectCode]). The scan signs the phone in; [signingIn] says so while it@@ -27,16 +30,28 @@ const kAddPhoneWhere =////// ```/// ‹-/// ┌──────────────────────┐-/// │ [ camera view ] │-/// └──────────────────────┘+/// ┌──────────────────────────────┐+/// │ [ camera view ] │+/// └──────────────────────────────┘/// Scan the code on your computer-/// On a Mac: Harness menu ▸ Add Phone…-/// On Linux: Ctrl+Shift+P, then “add phone”+/// 1 On your computer, sign in to Harness with Google or Apple. ([firstStep])+/// 2 Open Add Phone… and point this camera at its code. ([step])+/// Mac: Harness menu ▸ Add Phone… ([hint])+/// Linux: Ctrl+Shift+P, then “add phone”///-/// Use email instead+/// 🔒 End-to-end encrypted, phone to computer.+/// Use email instead/// ```///+/// With no [firstStep] the one step left goes unnumbered.+///+/// ⚠️ **Steps, not notes (owner, 2026-10-07).** Under the camera there were the hint, the line on+/// encryption and "Computer asks you to sign in? Sign in there…", one after another in the same+/// faint 13pt: nothing said which to read first, and the sign-in — which has to happen before the+/// computer shows any code — read as a footnote. It is a step of its own now, ahead of the scan,+/// and the camera stands at the top rather than centred in the room left, which had put every word+/// at the foot of the screen under an empty band.+////// The camera runs only while this page is up. A code that is not ours is ignored, so a stray QR/// in frame does nothing. A camera refused says where to turn it on, with a link to this app's/// Settings, and the camera comes up on the way back; no camera at all says so. Either way the@@ -53,11 +68,12 @@ class ScanToConnectPage extends StatefulWidget {this.onSignInCode,this.acceptConnectCodes = true,this.title = 'Scan the code on your computer',+ this.step = 'Open Add Phone… and point this camera at its code.',// Where it is on each, not "In Harness on your computer: Add Phone…": someone who has never// opened the desktop app does not know where Add Phone lives, and it is not in the same place// on a Mac and on Linux.this.hint = kAddPhoneWhere,- this.note,+ this.firstStep,});final ValueChanged<ConnectCode> onCode;@@ -65,15 +81,21 @@ class ScanToConnectPage extends StatefulWidget {/// A computer's sign-in QR ([SignInCode]) was read — offered only where the page takes one.final ValueChanged<SignInCode>? onSignInCode;- /// A line or two under the hint, in words that wrap: what to do when the computer cannot show the- /// code yet.- final String? note;+ /// What has to be done on the computer before it shows the code — step 1, ahead of [step]. Null+ /// for a phone already signed in, whose computer is on its account: the scan is the only step.+ final String? firstStep;/// Whether an Add Phone QR ([ConnectCode]) is one this page takes.final bool acceptConnectCodes;final String title;- final String hint;++ /// The scan's own step: what to open on the computer, and that the camera goes to its code.+ final String step;++ /// Under [step], quieter: where that is on the computer. Null says nothing more.+ final String? hint;+final VoidCallback onUseEmail;final VoidCallback onBack;@@ -202,6 +224,8 @@ class _ScanToConnectPageState extends State<ScanToConnectPage>Widget build(BuildContext context) {AppTheme.watch(context);final tty = Tty.of(context);+ final faint = tty.style(size: TtySize.meta, color: tty.faint);+ final firstStep = widget.firstStep;return Column(crossAxisAlignment: CrossAxisAlignment.stretch,children: [@@ -209,96 +233,198 @@ class _ScanToConnectPageState extends State<ScanToConnectPage>alignment: Alignment.centerLeft,child: TtyBackButton(onPressed: widget.onBack),),- const SizedBox(height: 12),- // As big a square as fits: the full width on a phone, less on a short screen.Expanded(- child: Center(- child: Padding(- padding: const EdgeInsets.symmetric(horizontal: Tty.origin),- child: AspectRatio(- aspectRatio: 1,- child: ClipRRect(- borderRadius: BorderRadius.circular(14),- child: ColoredBox(- color: ttyRaised(tty),- child:- widget.camera ??- MobileScanner(- controller: _scanner,- onDetect: _onDetect,- errorBuilder: (context, error) => _CameraProblem(- code: error.errorCode,- onOpenSettings: () => unawaited(_openSettings()),+ // ⚠️ **Scrolls when it does not fit.** The spacer holds the way out at the foot where+ // there is room; on a small phone at a large text size the steps outgrow what the square+ // leaves them, and the button under them — the way in without a camera — went off the+ // screen's foot.+ child: LayoutBuilder(+ builder: (context, box) {+ final width = math.max(0.0, box.maxWidth - 2 * Tty.origin);+ // As big a square as fits: the full width on a phone, less on a short screen, so the+ // steps under it stay on the first screen — but never too small to read a code in.+ final side = box.hasBoundedHeight+ ? math.min(+ width,+ math.max(_minSquare, box.maxHeight * _squareShare),+ )+ : width;+ return SingleChildScrollView(+ child: ConstrainedBox(+ constraints: BoxConstraints(+ minHeight: box.hasBoundedHeight ? box.maxHeight : 0,+ ),+ child: IntrinsicHeight(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.stretch,+ children: [+ const SizedBox(height: 4),+ Center(+ child: SizedBox.square(+ dimension: side,+ child: ClipRRect(+ borderRadius: BorderRadius.circular(14),+ child: ColoredBox(+ color: ttyRaised(tty),+ child:+ widget.camera ??+ MobileScanner(+ controller: _scanner,+ onDetect: _onDetect,+ errorBuilder: (context, error) =>+ _CameraProblem(+ code: error.errorCode,+ onOpenSettings: () =>+ unawaited(_openSettings()),+ ),+ ),+ ),+ ),+ ),+ ),+ // Texts that wrap, not one-line TtyTexts: at a narrow phone's width the+ // title and the hint's second half were cut off at the screen's edge — the+ // half that says where to look.+ Padding(+ padding: const EdgeInsets.fromLTRB(+ Tty.origin,+ 20,+ Tty.origin,+ 0,+ ),+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.stretch,+ children: [+ Text(+ widget.signingIn ? 'Signing in…' : widget.title,+ style: tty.style(+ size: TtySize.title,+ weight: FontWeight.w600,+ ),+ ),+ const SizedBox(height: 12),+ if (firstStep != null) ...[+ _ScanStep(+ key: const ValueKey('scan-first-step'),+ number: 1,+ text: firstStep,+ ),+ const SizedBox(height: 12),+ ],+ _ScanStep(+ number: firstStep == null ? null : 2,+ text: widget.step,+ detail: widget.hint,+ ),+ ],+ ),+ ),+ const Spacer(),+ const SizedBox(height: 20),+ // The one line of trust on the way in: the scan hands a phone the run of a+ // computer, and the first-time reviewer's question was what stops anyone+ // else reading it. Centred over the way out, the two read as the page's+ // foot rather than as more steps.+ Center(+ child: Padding(+ padding: const EdgeInsets.symmetric(+ horizontal: Tty.origin,+ ),+ child: Row(+ mainAxisSize: MainAxisSize.min,+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Padding(+ padding: const EdgeInsets.only(top: 2),+ child: Icon(+ LucideIcons.lock300,+ size: 13,+ color: tty.faint,+ ),+ ),+ const SizedBox(width: 6),+ Flexible(+ child: Text(+ 'End-to-end encrypted, phone to computer.',+ textAlign: TextAlign.center,+ style: faint,+ ),+ ),+ ],+ ),),),+ const SizedBox(height: 2),+ Center(+ child: TtyTextButton(+ label: widget.fallbackLabel,+ color: tty.faint,+ onPressed: widget.onUseEmail,+ ),+ ),+ const SizedBox(height: 12),+ ],+ ),),),- ),- ),- ),- ),- const SizedBox(height: 24),- // Texts that wrap, not one-line TtyTexts: at a narrow phone's width the title and the- // hint's second half were cut off at the screen's edge — the half that says where to look.- Padding(- padding: const EdgeInsets.symmetric(horizontal: Tty.origin),- child: Text(- widget.signingIn ? 'Signing in…' : widget.title,- style: tty.style(size: TtySize.title, weight: FontWeight.w600),- ),- ),- const SizedBox(height: 6),- Padding(- padding: const EdgeInsets.symmetric(horizontal: Tty.origin),- child: Text(- widget.hint,- key: const ValueKey('scan-hint'),- style: tty.style(size: TtySize.meta, color: tty.faint),- ),- ),- const SizedBox(height: 10),- // The one line of trust on the way in: the scan hands a phone the run of a computer, and- // the first-time reviewer's question was what stops anyone else reading it.- Padding(- padding: const EdgeInsets.symmetric(horizontal: Tty.origin),- child: Row(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- Padding(- padding: const EdgeInsets.only(top: 2),- child: Icon(LucideIcons.lock300, size: 13, color: tty.faint),- ),- const SizedBox(width: 6),- Expanded(- child: Text(- 'End-to-end encrypted, phone to computer.',- style: tty.style(size: TtySize.meta, color: tty.faint),- ),- ),- ],+ );+ },),),- if (widget.note case final note?) ...[- const SizedBox(height: 12),+ ],+ );+ }++ /// The camera's square, at most this share of the room under the back button — the rest is the+ /// steps' and the way out's.+ static const _squareShare = 0.56;++ /// …and never smaller than this, a short screen or not: below it a code across the room is hard+ /// to hold in frame. The page scrolls instead.+ static const double _minSquare = 220;+}++/// One step under the camera: its number in the terminal's green in a column of its own — none+/// when it is the only step — the words beside it, and [detail] under them, quieter.+class _ScanStep extends StatelessWidget {+ const _ScanStep({super.key, required this.text, this.number, this.detail});++ final int? number;+ final String text;+ final String? detail;++ @override+ Widget build(BuildContext context) {+ final tty = Tty.of(context);+ final style = tty.style(size: TtySize.row);+ final words = Column(+ crossAxisAlignment: CrossAxisAlignment.stretch,+ children: [+ Text(text, style: style),+ if (detail case final detail?)Padding(- padding: const EdgeInsets.symmetric(horizontal: Tty.origin),- // Wraps, unlike the hint above it: a sentence of what to do, not a label.+ padding: const EdgeInsets.only(top: 4),child: Text(- note,- key: const ValueKey('scan-note'),+ detail,+ key: const ValueKey('scan-hint'),style: tty.style(size: TtySize.meta, color: tty.faint),),),- ],- const SizedBox(height: 16),- Center(- child: TtyTextButton(- label: widget.fallbackLabel,- color: tty.faint,- onPressed: widget.onUseEmail,- ),+ ],+ );+ final number = this.number;+ if (number == null) return words;+ return Row(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ // One digit in a monospace face: every number is the same width, so the steps' words line+ // up without a column of fixed width that a larger text size would outgrow.+ Text(+ '$number',+ style: style.copyWith(color: tty.green, fontWeight: FontWeight.w600),),- const SizedBox(height: 12),+ const SizedBox(width: 12),+ Expanded(child: words),],);}@@ -432,7 +558,8 @@ Future<SignInCode?> scanForSignIn(BuildContext context, {Widget? camera}) asyncchild: ScanToConnectPage(camera: camera,title: 'Scan the code on the computer',- hint: 'On the computer: Sign in ▸ Scan with your phone',+ step: 'On the computer: Sign in ▸ Scan with your phone.',+ hint: null,fallbackLabel: 'Not now',acceptConnectCodes: false,onCode: (_) {},diff --git a/mobile/lib/phone/welcome/set_up_computer.dart b/mobile/lib/phone/welcome/set_up_computer.dartindex 40cd8a174..5db06f160 100644--- a/mobile/lib/phone/welcome/set_up_computer.dart+++ b/mobile/lib/phone/welcome/set_up_computer.dart@@ -194,7 +194,11 @@ class _SetUpComputerPageState extends State<SetUpComputerPage> {final menu = _menu;if (menu != null) {WidgetsBinding.instance.addPostFrameCallback((_) {- if (menu.isActive) menu.navigator?.removeRoute(menu);+ // The whole app going in the same frame takes the navigator, and the menu, with it.+ final navigator = menu.navigator;+ if (navigator != null && navigator.mounted && menu.isActive) {+ navigator.removeRoute(menu);+ }});}super.dispose();diff --git a/mobile/test/connect_computer_test.dart b/mobile/test/connect_computer_test.dartindex 8c70f6bae..56e72d39b 100644--- a/mobile/test/connect_computer_test.dart+++ b/mobile/test/connect_computer_test.dart@@ -85,7 +85,7 @@ void main() {}Future<void> scan(WidgetTester tester, String link) async {- await tester.tap(find.text('Scan to connect ›'));+ await tester.tap(find.byKey(const ValueKey('set-up-scan')));await tester.pumpAndSettle();tester.widget<ScanToConnectPage>(find.byType(ScanToConnectPage))@@ -103,12 +103,16 @@ void main() {) async {await pump(tester);expect(find.byType(SetUpComputerPage), findsOneWidget);- expect(find.text('Apple Silicon'), findsOneWidget);expect(find.textContaining('Waiting for your computer'), findsOneWidget);expect(find.text('Try the sample ›'), findsOneWidget);// The old page's second way of saying all this is gone.expect(find.text('Email me the setup link'), findsNothing);expect(find.textContaining('remote-password'), findsNothing);+ // The download menu is step 1's sheet.+ expect(find.text('Apple Silicon · M1 or later'), findsNothing);+ await tester.tap(find.byKey(const ValueKey('set-up-send')));+ await tester.pumpAndSettle();+ expect(find.text('Apple Silicon · M1 or later'), findsOneWidget);await unmount(tester);});diff --git a/mobile/test/pairing_with_code_test.dart b/mobile/test/pairing_with_code_test.dartindex 02ee55797..c9d39f44b 100644--- a/mobile/test/pairing_with_code_test.dart+++ b/mobile/test/pairing_with_code_test.dart@@ -93,7 +93,9 @@ void main() {final app = await pumpHome(tester, links);expect(find.byType(PairingWithCode), findsOneWidget);- expect(find.textContaining('MacBook Pro'), findsOneWidget);+ // The computer by name, in the title and in what to keep open on it meanwhile.+ expect(find.text('Connecting to\nMacBook Pro…'), findsOneWidget);+ expect(find.text('Keep “Add Phone” open on MacBook Pro.'), findsOneWidget);links.gate.complete();await tester.pump();expect(links.codes.single.$1, 'mac');diff --git a/mobile/test/phone_edge/welcome_behavior_test.dart b/mobile/test/phone_edge/welcome_behavior_test.dartindex 9a216cb1b..576a26164 100644--- a/mobile/test/phone_edge/welcome_behavior_test.dart+++ b/mobile/test/phone_edge/welcome_behavior_test.dart@@ -172,9 +172,13 @@ void main() {final (:app, sent: _, scans: _) = await welcome(tester);await tester.tap(find.text('Not yet — set it up'));await frames(tester);- await tapInView(tester, find.text('Scan to connect ›'));+ await tapInView(tester, find.text('Scan to connect'));await frames(tester);expect(find.text('Scan the code on your computer'), findsOneWidget);+ // Back from the camera is the steps it was opened from, and back from those the question.+ await tester.tap(find.bySemanticsLabel(RegExp('Back')).first);+ await frames(tester);+ expect(find.text('Get Harness for\nyour computer'), findsOneWidget);await tester.tap(find.bySemanticsLabel(RegExp('Back')).first);await frames(tester);expect(find.text('Yes — scan to connect'), findsOneWidget);@@ -300,7 +304,7 @@ void main() {),);await frames(tester);- expect(find.text('Apple Silicon'), findsOneWidget);+ expect(find.text('Send it to your computer'), findsOneWidget);expect(find.text('Email me the setup link'), findsNothing);await tapInView(tester, find.text('Try the sample ›'));await frames(tester);@@ -325,10 +329,13 @@ void main() {),);await frames(tester);- await tester.tap(find.text('Apple Silicon'));+ // The download menu is step 1's sheet.+ await tester.tap(find.byKey(const ValueKey('set-up-send')));+ await frames(tester);+ await tester.tap(find.text('Apple Silicon · M1 or later'));await frames(tester);expect(platformCalls.where((call) => call.contains('share')), isNotEmpty);- await tester.tap(find.text('CLI'));+ await tester.tap(find.text('Command line'));await tester.pump();expect(find.text('copied'), findsOneWidget);await tester.pump(const Duration(seconds: 3));@@ -345,7 +352,11 @@ void main() {setPhone(tester, largePhone);final links = EdgeLinks()..error = refuse;final app = edgeApp(links: links, machineName: 'studio');- app.stateOf('m')!.needsLink = true;+ // Locked, so not connected: a socket that is up has passed the machine's welcome, and a+ // link leaves it alone (`_keepsOpenConnection`).+ app.stateOf('m')!+ ..needsLink = true+ ..connectionStatus = ConnectionStatus.disconnected;final unlocked = <int>[];await tester.pumpWidget(phoneApp(diff --git a/mobile/test/phone_welcome_first_screen_test.dart b/mobile/test/phone_welcome_first_screen_test.dartindex d56b40e8f..8e4ca4599 100644--- a/mobile/test/phone_welcome_first_screen_test.dart+++ b/mobile/test/phone_welcome_first_screen_test.dart@@ -103,7 +103,7 @@ void main() {});testWidgets(- 'not yet: the website\'s download menu, each row sent to the computer',+ 'not yet: three steps, the website\'s download menu in step 1, each row sent to the computer',(tester) async {// A phone's height, so the whole page is on screen.tester.view.devicePixelRatio = 1;@@ -113,9 +113,27 @@ void main() {await tester.tap(find.text('Not yet — set it up'));await tester.pump();expect(find.byType(SetUpComputerPage), findsOneWidget);+ for (final line in [+ 'Install Harness on your computer.',+ 'Open it, and sign in with Google or Apple.',+ 'Open Add Phone… and scan its code.',+ 'Scan to connect',+ ]) {+ expect(find.text(line), findsOneWidget, reason: line);+ }+ expect(+ find.textContaining('harness.autonomous.ai/desktop'),+ findsOneWidget,+ );++ // Step 1's button opens the menu, row for row.+ expect(find.text('macOS · Linux · Command line'), findsOneWidget);+ expect(find.text('curl -fsSL …/install.sh | bash'), findsNothing);+ await tester.tap(find.byKey(const ValueKey('set-up-send')));+ await tester.pumpAndSettle();for (final row in [- 'Apple Silicon',- 'Intel',+ 'Apple Silicon · M1 or later',+ 'Intel · older Macs','Intel/AMD · Ubuntu, Omarchy and more','ARM · Raspberry Pi, ARM servers','curl -fsSL …/install.sh | bash',@@ -124,10 +142,7 @@ void main() {}expect(find.text('macOS'), findsNWidgets(2));expect(find.text('Linux'), findsNWidgets(2));- expect(- find.textContaining('harness.autonomous.ai/desktop'),- findsOneWidget,- );+ expect(find.text('Command line'), findsOneWidget);// The CLI row copies the website's command, and says so.String? copied;@@ -157,6 +172,11 @@ void main() {await tester.pump(const Duration(seconds: 2));expect(find.text('copied'), findsNothing);+ // A tap above the sheet puts it away, onto the steps.+ await tester.tapAt(const Offset(215, 40));+ await tester.pumpAndSettle();+ expect(find.text('curl -fsSL …/install.sh | bash'), findsNothing);+// Back is the first screen.await tester.tap(find.bySemanticsLabel('Back'));await tester.pump();diff --git a/mobile/test/unlock_by_scan_test.dart b/mobile/test/unlock_by_scan_test.dartindex 675434ba4..70e9c7458 100644--- a/mobile/test/unlock_by_scan_test.dart+++ b/mobile/test/unlock_by_scan_test.dart@@ -132,7 +132,12 @@ void main() {await scan(tester, ConnectCode.link('[email protected]'));expect(links.codes, isEmpty);expect(unlocked, isEmpty);- expect(find.textContaining("can't unlock a computer"), findsOneWidget);+ // Says what to scan instead: the computer's own Add Phone code.+ expect(find.textContaining('isn’t an Add Phone code'), findsOneWidget);+ expect(+ find.textContaining('Open Add Phone… on studio and scan its code.'),+ findsOneWidget,+ );});testWidgets(