Repository navigation
Phone page tests: session views open in the fake browser - #31
Merged
Merged
Conversation
…session views open The fake kept location.hash without its "#", and the page drops the first character, so no unit test ever reached a session view: "s=mhm-a" routed to the list. It now reads with the "#", as Safari's does, and has a canvas that measures text. With that, tests cover a session opened by a link, from the list, and right after New. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VwoQ7n4KEAVgw3HjEDfxga
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fake browser in the page script's unit tests stored
location.hashwithout its#. The page drops the first character of the hash, so a route tos=mhm-aended up on the list, and no unit test ever reached a session view.The fake's hash now reads with its
#, as Safari's does. It also gains a canvas that measures text, which the session view uses to size itself.One test expected the old, wrong hash; it's updated.
New tests cover a session opened:
The last one fails without the title fix from Move the Swift port to its own repo, microhm-appkit #30.
Page tests: 51/51.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VwoQ7n4KEAVgw3HjEDfxga