Tests: ui-egui tests outside the panels check counts and waits

- Artboard frame tests assert how many frames are drawn before checking
  each one, so a canvas that draws no frames fails them.
- Find Font's refresh test checks the document's one family and the one
  row it shows instead of checking every row of a list that may be empty.
- The freeform paint chip test also checks an opaque point and the chip's
  size, and the holographic test checks the foil chip's size.
- The background wait tests (Quit, packaging and export made at once)
  open the writer's gate when the UI thread starts waiting, through a
  test-only hook in background::wait_until, instead of after a sleep.
  Each asserts that the wait happened.
- Cancel Open waits for the file to be read before Cancel instead of
  sleeping after it.
- The automation roots test checks that the open keeps the same roots.
- The brightness test reads the saved ids and old labels in place of a
  round trip through its own table.
- Removed every_tool_cursors_hotspot_lies_inside_its_icon_box, which
  every_tool_cursors_hotspot_is_on_its_glyph covers, and
  message_dump_lists_the_reported_messages and the schema phrase loop,
  which held by construction.
- dump_source_strings is ignored with a reason; the translator commands
  in docs/development.md pass --ignored.
This commit is contained in:
dotCooCoo committed 2026-12-01 17:39:41 -08:00
1 parent 5970647dec
commit 38debaa67e
13 files changed
+89 -85

No files matched your search

+2 -2
View File
@@ -294,7 +294,7 @@ other `sv-*` locale resolve to it), Georgian (`ka`, complete; `ka-GE` and `ka_GE
placeholders and ellipses agree, command ids exist, every row of a partial catalog is a string the UI
shows, the UI fonts have every glyph, no Simplified characters in `zh-hant`) pick it up. Set `complete_menus`
once the menus and `tl!` literals are translated; the untranslated report then lists what the catalog lacks
(`VECTORCRAFT_I18N_DUMP=strings.txt cargo test -p vectorcraft-ui-egui dump_source_strings` lists every
(`VECTORCRAFT_I18N_DUMP=strings.txt cargo test -p vectorcraft-ui-egui dump_source_strings -- --ignored` lists every
English string).
- A missing translation never fails a test or a build: the interface shows the English text until a translator
adds the row. `cargo xtask i18n-report` prints, per language, the strings its catalog lacks (menu strings,
@@ -329,7 +329,7 @@ other `sv-*` locale resolve to it), Georgian (`ka`, complete; `ka-GE` and `ka_GE
`bad(…)` or `failed(…)`, and the messages a `.map_err(|e| …)` closure returns (from each `if` branch,
`match` arm and statement of a block) or the handler a `.map_err(name)` names returns (a closure bound with `let name = |e| …;` or a
function `fn name(…)`), and skips calls inside comments
(`VECTORCRAFT_I18N_DUMP_MESSAGES=messages.txt cargo test -p vectorcraft-ui-egui dump_source_strings` lists them
(`VECTORCRAFT_I18N_DUMP_MESSAGES=messages.txt cargo test -p vectorcraft-ui-egui dump_source_strings -- --ignored` lists them
all). A missing row shows the English message. Other languages show messages in English until they add `@msg`
rows.
- Not translated on purpose: names that are user data (layers, swatches, fonts, documents), the tab