mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
Home: require the German Recent Files row in the heading test
The test skipped its heading check when the German catalog had no Recent Files row, so a lost heading passed in that case. It now asserts that the row exists and that Home shows its text.
This commit is contained in:
1 parent
b0185db919
commit
233ae38bfe
1 file changed
+2
-5
@@ -179,11 +179,8 @@ fn home_heads_the_recent_files_recent_files() {
|
||||
assert!(!home.shows("Recent"), "not Recent alone");
|
||||
let home = shown("de");
|
||||
let german = crate::i18n::tr(crate::i18n::Lang::from_code("de").expect("German is registered"), "Recent Files");
|
||||
if german == "Recent Files" {
|
||||
assert!(!home.shows("Recent Files"), "without a catalog row German keeps the framework's heading");
|
||||
} else {
|
||||
assert!(home.shows(german), "German shows the catalog's Recent Files, {german}");
|
||||
}
|
||||
assert_ne!(german, "Recent Files", "the German catalog translates Recent Files");
|
||||
assert!(home.shows(german), "German shows the catalog's Recent Files, {german}");
|
||||
}
|
||||
|
||||
/// The Home screen has a Learn section: every tutorial of the Learn panel under its skill. A
|
||||
|
||||
Reference in new issue
Block a user