PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
test(ui): use the platform's name for this computer in layout tests
baiyuze9bc8bf588c4d
diff --git a/ui/test/send_page_test.dart b/ui/test/send_page_test.dartindex f0a99bf..3940e10 100644--- a/ui/test/send_page_test.dart+++ b/ui/test/send_page_test.dart@@ -6,6 +6,7 @@ import 'package:pasteferry_ui/app_state.dart';import 'package:pasteferry_ui/gen/pasteferry/v1/daemon.pb.dart';import 'package:pasteferry_ui/i18n.dart';import 'package:pasteferry_ui/main.dart';+import 'package:pasteferry_ui/platform.dart';import 'package:pasteferry_ui/widgets/send_dialog.dart';const _in = TransferDirection.TRANSFER_DIRECTION_INCOMING;@@ -167,7 +168,8 @@ void main() {await tester.pump();await tester.tap(find.text('隔空传送').first);await tester.pump();- final radar = tester.getCenter(find.text('这台 Mac'));+ // 本机的叫法随平台变:Mac 上「这台 Mac」,其他平台「这台电脑」+ final radar = tester.getCenter(find.text(Wording.thisDevice));final tabs = tester.getCenter(find.text('收到的'));if (stacked) {expect(tabs.dy, greaterThan(radar.dy), reason: '列表在雷达下面');