Skip to content
2 changes: 0 additions & 2 deletions crates/obsidianssh-app/src/i18n/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,6 @@ mod tests {
"ssh_progress_proxy",
"ssh_progress_command_proxy",
"ssh_progress_forwards",
"ssh_progress_instance_connect",
"ssh_progress_instance_connect_failed",
"ssh_progress_pane_connecting",
"ssh_progress_error",
"ssh_progress_method_auto",
Expand Down
8 changes: 5 additions & 3 deletions crates/obsidianssh-app/tests/e2e/font-weight.ice
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@ expect "Terminal Font Weight"
# tunnel, each with a description line) joined the behaviour card above
# it, then 1310 -> 1362 when the Ctrl+wheel zoom row and its hint
# (#225) joined Appearance, then 1362 -> 1464 when the cursor shape and
# blink rows and their hint (#266) joined it too. A miss lands on the card instead of the
# blink rows and their hint (#266) joined it too, then 1464 -> 1516 when
# macro-run confirmation joined Behavior. The measured label is at y 1471.
# A miss lands on the card instead of the
# picker, leaves the dropdown shut, and fails at the assertion rather
# than at the click that actually went wrong.
click (300, 1464)
click (300, 1516)
settle 300
# Dropdown options, top to bottom: Regular / Medium / SemiBold / Bold.
# It opens UPWARDS over the label, so SemiBold lands above the picker
# (~82 px up from the picker's centre). They live in an overlay no text
# selector can see, hence the coordinate.
click (300, 1382)
click (300, 1434)
settle 300
expect "This font has no face at the selected weight, so the terminal uses the closest one it has."
# The stroke-widening row lives in the same block, right under the
Expand Down
6 changes: 3 additions & 3 deletions crates/obsidianssh-app/tests/e2e/privacy-v2.ice
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ settle 500

# Enable Privacy Mode; the v2 rows appear under the master toggle:
# four per-class gates (block 1) and the two mask lists (block 4).
# The toggle coordinate tracks the Security layout (group headers
# added 2026-07-18 pushed the Privacy card down).
# The vault-password and lock cards were removed from Security. In this
# viewport the Privacy label is at y 110; hit its switch at label_y + 8.
click (1215, 64)
expect "Security & Privacy"
click "Security & Privacy"
expect "Privacy mode"
click (1181, 450)
click (1181, 118)
settle 800
expect "Mask public IP addresses"
expect "Mask private and loopback IPs"
Expand Down
6 changes: 4 additions & 2 deletions crates/obsidianssh-app/tests/e2e/shell-integration-key.ice
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ settle
# action row and its hint joined Split panes too, and 2495 -> 2547 when
# the Ctrl+wheel zoom row and its hint (#225) joined Appearance, which
# also pushed the copy row past the old 2600 viewport, and 2547 -> 2650
# when the cursor shape and blink rows and their hint (#266) joined it.
# when the cursor shape and blink rows and their hint (#266) joined it,
# and 2650 -> 2702 when the macro-run confirmation row and its hint
# joined Behavior.
#
# Build the binary you measure with into a target dir of your OWN.
# Sessions share this repo's `target/`, so a `debug/obsidianssh` sitting
Expand All @@ -82,7 +84,7 @@ settle
# failure, so three earlier stale tests hid it. Read the row back
# with `find "Capture command history"` and use label_y + 8 rather
# than guessing a delta.
click (1340, 2650)
click (1340, 2702)
settle
absent "Copy shell integration snippet"
absent "Rotate key"
5 changes: 3 additions & 2 deletions crates/obsidianssh-app/tests/e2e/snippet-bar.ice
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ settle 400
expect "bash (default)"
# No snippet is marked: no bar.
absent "deploy-bar"
click "Personal"
# The icon-only Home tab replaces the retired vault chip.
click (56, 20)
settle 300
click "Macros"
settle 300
Expand All @@ -45,7 +46,7 @@ expect "deploy-bar"
click "deploy-bar"
settle 400
# The menu now offers the other way.
click "Personal"
click (56, 20)
settle 300
click "Macros"
settle 300
Expand Down
4 changes: 2 additions & 2 deletions crates/obsidianssh-app/tests/e2e/tab-bar-drag-handle.ice
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ screenshot tab-bar-drag-handle
# The handle: right of the docked `+`, left of the `⋯` (1115 minus the
# chrome, the side-panel toggle, the `⋯` and the 40 px handle itself
# puts it at x 841..881).
move (787.00, 18.00)
move (861.00, 18.00)
settle 250
absent "New Tab"
click right (787.00, 18.00)
click right (861.00, 18.00)
settle 250
expect "New Tab"
absent "Close Tab"
Expand Down
3 changes: 2 additions & 1 deletion crates/obsidianssh-app/tests/e2e/tab-double-click.ice
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ absent "Rename Tab"
absent "2. bash (default)"

# Rename. Settings comes back as the second tab and stays there.
click "Personal"
# Return through the icon-only Home tab; the vault chip was removed.
click (56, 20)
settle 300
click (1176, 64)
settle 500
Expand Down
12 changes: 7 additions & 5 deletions crates/obsidianssh-app/tests/e2e/tab-drag-slide-rtl.ice
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,17 @@ settle 500
click "alpha"
settle 500
order "gamma" "beta" "alpha"
move (720, 22)
# The narrower Home tab moves RTL chips right by 74 px. Measured before
# dragging: beta's label starts at x 785, gamma's at x 674.
move (794, 22)
settle 200
press (720, 20)
move (712, 22)
press (794, 20)
move (786, 22)
find "gamma"
move (590, 20)
move (664, 20)
settle 200
screenshot rtl-1-beta-dragged-left
release (590, 20)
release (664, 20)
settle 400
order "beta" "gamma" "alpha"
expect "● beta"
Expand Down
18 changes: 10 additions & 8 deletions crates/obsidianssh-app/tests/e2e/tab-drag-slide.ice
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type enter
settle 300
order "alpha" "beta" "gamma"
expect "● gamma"
# alpha (~151..265) right, past gamma's middle (gamma ~368..606).
# alpha (~77..191) right, past gamma's middle (gamma ~294..532).
press (116, 20)
move (126, 22)
find "beta"
Expand All @@ -69,7 +69,7 @@ release (426, 20)
settle 400
order "beta" "gamma" "alpha"
expect "● alpha"
# gamma (now ~262..366) left onto beta's left half (beta ~151..259).
# gamma (now ~188..292) left onto beta's left half (beta ~77..185).
press (226, 20)
move (216, 22)
find "beta"
Expand Down Expand Up @@ -104,15 +104,17 @@ type ctrl+shift+l
settle 300
type ctrl+shift+l
settle 500
click right (686, 20)
# Overflow is anchored to the trailing chrome, so removing the leading
# vault chip does not shift these targets. Measure from the screenshot.
click right (760, 20)
settle 250
click "Rename Tab"
settle 250
type ctrl+a
type "epsilon"
type enter
settle 300
click right (516, 20)
click right (590, 20)
settle 250
click "Rename Tab"
settle 250
Expand All @@ -123,13 +125,13 @@ settle 300
order "gamma" "delta" "epsilon"
screenshot slide-3-overflow-scrolled
# epsilon (~645..885) onto delta's left half (delta ~545..640).
press (686, 20)
move (676, 22)
press (760, 20)
move (750, 22)
find "delta"
move (506, 20)
move (580, 20)
settle 200
screenshot slide-4-scrolled-drag
release (506, 20)
release (580, 20)
settle 400
order "gamma" "epsilon" "delta"
expect "● epsilon"
Expand Down
3 changes: 3 additions & 0 deletions crates/obsidianssh-app/tests/e2e/theme-gallery-tags.ice
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ click (1215, 64)
settle
click "Terminal Settings"
settle
# Macro-run confirmation grew Behavior; reveal the theme card below it.
scroll pixels (0, -500) (700, 1000)
settle
click "Follow app theme (Obsidian Network)"
settle
expect "Dracula"
Expand Down
22 changes: 12 additions & 10 deletions crates/obsidianssh-sync/src/wire_golden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,23 @@ fn times() -> [DateTime<Utc>; 4] {
/// its default, plus every `EntityType` and every time precision.
pub(crate) fn fixtures() -> Vec<SyncMessage> {
let t = times();
let manifest = EntityType::ALL
// Tag 7 (CloudProfile) is retired; preserve every surviving fixture's
// original identity, timestamp and payload instead of shifting its data.
let entities = EntityType::ALL
.iter()
.enumerate()
.map(|(i, kind)| (i + usize::from(i >= 7), kind));
let manifest = entities
.clone()
.map(|(i, kind)| ManifestEntry {
entity_type: *kind,
entity_id: id(i as u8),
updated_at: t[i % t.len()],
is_deleted: i % 3 == 0,
})
.collect();
let records = EntityType::ALL
.iter()
.enumerate()
let records = entities
.clone()
.map(|(i, kind)| SyncRecord {
entity_type: *kind,
entity_id: id(0x40 + i as u8),
Expand Down Expand Up @@ -77,9 +81,7 @@ pub(crate) fn fixtures() -> Vec<SyncMessage> {
SyncMessage::ManifestRequest,
SyncMessage::Manifest { entries: manifest },
SyncMessage::DeltaRequest {
needed: EntityType::ALL
.iter()
.enumerate()
needed: entities
.map(|(i, kind)| DeltaRef { entity_type: *kind, entity_id: id(0x80 + i as u8) })
.collect(),
},
Expand Down Expand Up @@ -111,9 +113,9 @@ const GOLDEN: &[&str] = &[
"7400000005000000100000000000000004112233445546778899aabbccddee0400000000000000002000000000000000333333333333333333333333333333333333333333333333333333333333333320000000000000004444444444444444444444444444444444444444444444444444444444444444",
"18000000060000000c00000000000000636f64652065787069726564",
"0400000007000000",
"b4020000080000000b0000000000000000000000100000000000000000112233445546778899aabbccddee001400000000000000323032362d31302d30345431323a33343a35365a0101000000100000000000000001112233445546778899aabbccddee011800000000000000323032362d31302d30345431323a33343a35362e3132305a0002000000100000000000000002112233445546778899aabbccddee021b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a0003000000100000000000000003112233445546778899aabbccddee031e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a0104000000100000000000000004112233445546778899aabbccddee041400000000000000323032362d31302d30345431323a33343a35365a0005000000100000000000000005112233445546778899aabbccddee051800000000000000323032362d31302d30345431323a33343a35362e3132305a0006000000100000000000000006112233445546778899aabbccddee061b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a0107000000100000000000000007112233445546778899aabbccddee071e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a0008000000100000000000000008112233445546778899aabbccddee081400000000000000323032362d31302d30345431323a33343a35365a0009000000100000000000000009112233445546778899aabbccddee091800000000000000323032362d31302d30345431323a33343a35362e3132305a010a00000010000000000000000a112233445546778899aabbccddee0a1b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a00",
"40010000090000000b0000000000000000000000100000000000000080112233445546778899aabbccddee8001000000100000000000000081112233445546778899aabbccddee8102000000100000000000000082112233445546778899aabbccddee8203000000100000000000000083112233445546778899aabbccddee8304000000100000000000000084112233445546778899aabbccddee8405000000100000000000000085112233445546778899aabbccddee8506000000100000000000000086112233445546778899aabbccddee8607000000100000000000000087112233445546778899aabbccddee8708000000100000000000000088112233445546778899aabbccddee8809000000100000000000000089112233445546778899aabbccddee890a00000010000000000000008a112233445546778899aabbccddee8a",
"970400000a0000000b0000000000000000000000100000000000000040112233445546778899aabbccddee401800000000000000323032362d31302d30345431323a33343a35362e3132305a01000000000000000001000000100000000000000041112233445546778899aabbccddee411b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a0007000000000000000001020304050602000000100000000000000042112233445546778899aabbccddee421e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a010e00000000000000000102030405060708090a0b0c0d03000000100000000000000043112233445546778899aabbccddee431400000000000000323032362d31302d30345431323a33343a35365a001500000000000000000102030405060708090a0b0c0d0e0f101112131404000000100000000000000044112233445546778899aabbccddee441800000000000000323032362d31302d30345431323a33343a35362e3132305a011c00000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b05000000100000000000000045112233445546778899aabbccddee451b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a002300000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212206000000100000000000000046112233445546778899aabbccddee461e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a012a00000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021222324252627282907000000100000000000000047112233445546778899aabbccddee471400000000000000323032362d31302d30345431323a33343a35365a003100000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f3008000000100000000000000048112233445546778899aabbccddee481800000000000000323032362d31302d30345431323a33343a35362e3132305a013800000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363709000000100000000000000049112233445546778899aabbccddee491b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a003f00000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e0a00000010000000000000004a112233445546778899aabbccddee4a1e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a014600000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445",
"71020000080000000a0000000000000000000000100000000000000000112233445546778899aabbccddee001400000000000000323032362d31302d30345431323a33343a35365a0101000000100000000000000001112233445546778899aabbccddee011800000000000000323032362d31302d30345431323a33343a35362e3132305a0002000000100000000000000002112233445546778899aabbccddee021b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a0003000000100000000000000003112233445546778899aabbccddee031e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a0104000000100000000000000004112233445546778899aabbccddee041400000000000000323032362d31302d30345431323a33343a35365a0005000000100000000000000005112233445546778899aabbccddee051800000000000000323032362d31302d30345431323a33343a35362e3132305a0006000000100000000000000006112233445546778899aabbccddee061b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a0108000000100000000000000008112233445546778899aabbccddee081400000000000000323032362d31302d30345431323a33343a35365a0009000000100000000000000009112233445546778899aabbccddee091800000000000000323032362d31302d30345431323a33343a35362e3132305a010a00000010000000000000000a112233445546778899aabbccddee0a1b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a00",
"24010000090000000a0000000000000000000000100000000000000080112233445546778899aabbccddee8001000000100000000000000081112233445546778899aabbccddee8102000000100000000000000082112233445546778899aabbccddee8203000000100000000000000083112233445546778899aabbccddee8304000000100000000000000084112233445546778899aabbccddee8405000000100000000000000085112233445546778899aabbccddee8506000000100000000000000086112233445546778899aabbccddee8608000000100000000000000088112233445546778899aabbccddee8809000000100000000000000089112233445546778899aabbccddee890a00000010000000000000008a112233445546778899aabbccddee8a",
"250400000a0000000a0000000000000000000000100000000000000040112233445546778899aabbccddee401800000000000000323032362d31302d30345431323a33343a35362e3132305a01000000000000000001000000100000000000000041112233445546778899aabbccddee411b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a0007000000000000000001020304050602000000100000000000000042112233445546778899aabbccddee421e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a010e00000000000000000102030405060708090a0b0c0d03000000100000000000000043112233445546778899aabbccddee431400000000000000323032362d31302d30345431323a33343a35365a001500000000000000000102030405060708090a0b0c0d0e0f101112131404000000100000000000000044112233445546778899aabbccddee441800000000000000323032362d31302d30345431323a33343a35362e3132305a011c00000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b05000000100000000000000045112233445546778899aabbccddee451b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a002300000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212206000000100000000000000046112233445546778899aabbccddee461e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a012a00000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021222324252627282908000000100000000000000048112233445546778899aabbccddee481800000000000000323032362d31302d30345431323a33343a35362e3132305a013800000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363709000000100000000000000049112233445546778899aabbccddee491b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a003f00000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e0a00000010000000000000004a112233445546778899aabbccddee4a1e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a014600000000000000000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445",
"f90000000b000000030000000000000000000000100000000000000040112233445546778899aabbccddee401800000000000000323032362d31302d30345431323a33343a35362e3132305a01000000000000000001000000100000000000000041112233445546778899aabbccddee411b00000000000000323032362d31302d30345431323a33343a35362e3132333435365a0007000000000000000001020304050602000000100000000000000042112233445546778899aabbccddee421e00000000000000323032362d31302d30345431323a33343a35362e3132333435363738395a010e00000000000000000102030405060708090a0b0c0d",
"540000000c0000000300000000000000100000000000000005112233445546778899aabbccddee05100000000000000006112233445546778899aabbccddee06100000000000000007112233445546778899aabbccddee07",
"040000000d000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ fn export_blob_contains_no_plaintext_secrets() {
.as_deref(),
Some(MARKERS[0])
);
assert_eq!(target.get_ai_api_key().unwrap().as_deref(), Some(MARKERS[7]));
assert_eq!(target.get_ai_api_key().unwrap().as_deref(), Some(MARKERS[6]));
assert_eq!(
target.get_key_private(&key.id).unwrap().as_deref(),
Some(MARKERS[5])
Expand Down