diff --git a/src/functional_tests/test_bill_my_buds.py b/src/functional_tests/test_bill_my_buds.py index 759c202..ac7f06a 100644 --- a/src/functional_tests/test_bill_my_buds.py +++ b/src/functional_tests/test_bill_my_buds.py @@ -25,7 +25,9 @@ class MyBudsPageTest(FunctionalTest): entry = self.wait_for( lambda: self.browser.find_element(By.CSS_SELECTOR, ".bud-entry .bud-name") ) - self.assertEqual(entry.text, "alice") + # Bud names render via `at_handle` filter — `@` w. an + # `@` prefix on users w. a username; truncated email otherwise. + self.assertEqual(entry.text, "@alice") def test_empty_state_when_no_buds(self): self.browser.get(self.live_server_url + "/billboard/my-buds/") @@ -44,12 +46,12 @@ class MyBudsPageTest(FunctionalTest): ok = self.browser.find_element(By.CSS_SELECTOR, "#id_bud_panel .btn.btn-confirm") ok.click() - # New entry appears w. alice's username (not the bare email) + # New entry appears w. alice's @-prefixed handle (not the bare email) self.wait_for(lambda: self.assertEqual( self.browser.find_element( By.CSS_SELECTOR, f".bud-entry[data-bud-id='{self.alice.id}'] .bud-name" ).text, - "alice", + "@alice", )) # Server-side persisted self.wait_for(lambda: self.assertIn( diff --git a/src/templates/apps/billboard/_partials/_applet-most-recent-scroll.html b/src/templates/apps/billboard/_partials/_applet-most-recent-scroll.html index de596cc..193a0b4 100644 --- a/src/templates/apps/billboard/_partials/_applet-most-recent-scroll.html +++ b/src/templates/apps/billboard/_partials/_applet-most-recent-scroll.html @@ -11,7 +11,7 @@ {% for event in recent_events %}
- {% if event.actor %}{{ event.actor|display_name }}{% endif %} + {% if event.actor %}{{ event.actor|at_handle }}{% endif %} {{ event.to_prose|safe }}