use fission_test_driver::{GoldenOptions, LiveTestClient};
let client = LiveTestClient::connect(control_port);
client.wait_for_ready(15_000)?;
client.simulate_resize(390, 844)?;
client.wait_for_idle(2_000, false)?;
client.compare_golden(
"tests/goldens/settings-phone.png",
Some(".artifacts/diffs/settings-phone.png"),
GoldenOptions {
channel_tolerance: 8,
max_changed_percent: 0.2,
},
)?;
Scenario | Why it matters |
|---|---|
Phone and desktop shell | Proves responsive layout branches. |
Light and dark theme | Proves token usage. |
Long translated strings | Proves text wrapping and i18n. |
Modal/menu/popover | Proves portal geometry. |
Charts and media surfaces | Proves renderer-specific output. |
Release screenshots | Proves store assets before publishing. |