From f353bdc5ec27eeff528694b0fdc4bfb1c87d4c44 Mon Sep 17 00:00:00 2001 From: Jason Ross <51939451+JMR-dev@users.noreply.github.com> Date: Thu, 2 Jul 2026 18:09:40 -0500 Subject: [PATCH 1/2] test(compose): add RichTextEditor unit + ComposeScreen UI coverage (#176) Closes the #36 test-coverage gap left after the rich-text editor shipped: - RichTextEditorTest.kt (new JVM unit test, 20 cases): exercises the Compose-editor glue in RichTextEditor.kt that had no direct coverage - applyStyle/applyBlock/applyLink, the AnnotatedString.toRichContent() <-> RichTextContent.toAnnotatedString() round trip across every span/link/ alignment/image/baseStyle channel, and the isStyled/hasBlock predicate FormattingToolbar uses to light up its buttons. All plain TextFieldValue/ AnnotatedString/Color types, so it runs on the JVM with no emulator. applyBlock/applyLink go from private to internal so the test can reach them directly, mirroring applyStyle's existing internal visibility. - ComposeScreenTest.kt (androidTest, following this file's existing createAndroidComposeRule + fake-repository harness): one case taps the bullet-list toolbar button and asserts the sent message carries the