[PR #5425] [MERGED] Main's tests pass again: title keyboard test goes through the preparing screen #6281

Closed
opened 2026-11-03 06:17:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5425
Author: @ludovic111
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: fix/main-build-title-keyboard-test


📝 Commits (1)

  • 9e523a8 Title keyboard test: Create New World goes through the preparing screen

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/title/tests.rs (+4 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

cargo test -p horizon-client --lib fails on main: title::tests::title_screen_keyboard_navigation_and_activation panics at assert!(matches!(f.title.mode, Mode::Create { .. })).

#4638 (keyboard navigation) added this test, expecting Enter on Create New World to open the create screen at once. 072cc6127 landed beside it: like vanilla's CreateWorldScreen.openCreateWorldScreen, the button now sets preparing and shows "Preparing for world creation..." first, and the game opens the create screen afterwards. The behaviour is right, so the test was the stale part. It now asserts preparing() and calls finish_preparing(), as the other title tests already do, before checking for Mode::Create.

Only the test changes. Check: cargo test -p horizon-client --lib -- title:: gives 61 passed, and cargo fmt --check is ok.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5425 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/main-build-title-keyboard-test` --- ### 📝 Commits (1) - [`9e523a8`](https://github.com/horizon-rust/horizon/commit/9e523a894e56e286102ade9c9160d13a71d46d92) Title keyboard test: Create New World goes through the preparing screen ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/title/tests.rs` (+4 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. `cargo test -p horizon-client --lib` fails on main: `title::tests::title_screen_keyboard_navigation_and_activation` panics at `assert!(matches!(f.title.mode, Mode::Create { .. }))`. #4638 (keyboard navigation) added this test, expecting Enter on Create New World to open the create screen at once. 072cc6127 landed beside it: like vanilla's `CreateWorldScreen.openCreateWorldScreen`, the button now sets `preparing` and shows "Preparing for world creation..." first, and the game opens the create screen afterwards. The behaviour is right, so the test was the stale part. It now asserts `preparing()` and calls `finish_preparing()`, as the other title tests already do, before checking for `Mode::Create`. Only the test changes. Check: `cargo test -p horizon-client --lib -- title::` gives 61 passed, and `cargo fmt --check` is ok. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:17:39 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6281
No description provided.