Drop the screenshot tests and the moon-disc module; just test runs every lib package
- Tests that only wrote PNGs to look at are gone: desktop, overview (and its overview_shot helper), editor, emoji picker, launcher/Icon Desktop and dock screenshots. They were among the slowest in the suite; the behaviour they touched has its own tests. - moon-disc never had source in the tree, so every fresh panel said "Module 'moon-disc' not found". It is out of the default panel, and a saved panel drops it (migrate_panel). The settings module's sample rows and labels no longer mention it. - The settings module lists Show Desktop under "Apps and windows", with a description. - just test ran lib/taskbar, lib/layoutpick and lib/modmgr, which no longer exist, so the wasm lib tests failed to start; it now runs every package in lib/ (83 tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e2dc2bb930
commit
7ce5b79af2
13 files changed
+20
-270
No files matched your search
@@ -264,41 +264,6 @@ test "reload brings the desktop module back from disk with its settings" {
|
||||
assert_eq(comp.shell.desktop_module().unwrap().module_id, "starfield")
|
||||
}
|
||||
|
||||
///|
|
||||
test "desktop screenshots: icons, starfield, the Desktop tab" {
|
||||
let comp = desk_comp("shots", fake_apps=false)
|
||||
assert_true(comp.shell.set_desktop("icon-desktop"))
|
||||
comp.shell.set_module_setting("desktop", "count", "All")
|
||||
ignore(comp.compose_frame())
|
||||
// Hover one icon and select another with the keyboard.
|
||||
click_at(comp, 900, 300, 10U)
|
||||
comp.handle_input(@nested.InputEvent::Key(106U, true), 20U) // Right: selects the first
|
||||
comp.handle_input(@nested.InputEvent::Key(108U, true), 21U) // Down
|
||||
comp.handle_input(@nested.InputEvent::PointerMove(68.0, 68.0), 22U)
|
||||
ignore(@sys.write_file_bytes("_build/desktop_icons.png", @renderer.encode_png(comp.compose_frame())))
|
||||
assert_true(comp.shell.set_desktop("starfield"))
|
||||
comp.shell.set_module_setting("desktop", "speed", "Normal")
|
||||
comp.handle_input(@nested.InputEvent::PointerMove(900.0, 250.0), 30U)
|
||||
for _ in 0..<6 {
|
||||
@sys.sleep_ms(34)
|
||||
ignore(comp.compose_frame())
|
||||
}
|
||||
ignore(@sys.write_file_bytes("_build/desktop_starfield.png", @renderer.encode_png(comp.compose_frame())))
|
||||
// Warp pulse: a click streaks the stars.
|
||||
click_at(comp, 900, 250, 40U)
|
||||
for _ in 0..<3 {
|
||||
@sys.sleep_ms(34)
|
||||
ignore(comp.compose_frame())
|
||||
}
|
||||
ignore(@sys.write_file_bytes("_build/desktop_warp.png", @renderer.encode_png(comp.compose_frame())))
|
||||
assert_true(comp.shell.open_settings(Desktop))
|
||||
for _ in 0..<10 {
|
||||
@sys.sleep_ms(40) // the popup slides in
|
||||
ignore(comp.compose_frame())
|
||||
}
|
||||
ignore(@sys.write_file_bytes("_build/desktop_settings.png", @renderer.encode_png(comp.compose_frame())))
|
||||
}
|
||||
|
||||
///|
|
||||
test "mobile tap on desktop icon with finger drift launches without moving any icon" {
|
||||
let socket_path = "/tmp/wayland-moon-desk-mobile-" + @sys.getpid().to_string() + ".sock"
|
||||
|
||||
Reference in new issue
Block a user