discourse/plugins/chat/spec
Martin Brennan fc199d42fa
FIX: Add aria-label attribute to cooked hashtags (#22182)
This commit adds an aria-label attribute to cooked hashtags using
the post/chat message decorateCooked functionality. I have just used
the inner content of the hashtag (the tag/category/channel name) for
the label -- we can reexamine at some point if we want something
different like "Link to dev category" or something, but from what I
can tell things like Twitter don't even have aria-labels for hashtags
so the text would be read out directly.

This commit also refactors any ruby specs checking the HTML of hashtags
to use rspec-html-matchers which is far clearer than having to maintain
the HTML structure in a HEREDOC for comparison, and gives better spec
failures.

c.f. https://meta.discourse.org/t/hashtags-are-getting-a-makeover/248866/23?u=martin
2023-06-20 15:47:17 +10:00
..
components/chat FEATURE: Thread indicator improvements and participants (#21909) 2023-06-15 10:49:27 +10:00
fabricators FEATURE: Thread indicator improvements and participants (#21909) 2023-06-15 10:49:27 +10:00
integration DEV: Update chat cooked quote spec (#22202) 2023-06-20 10:30:33 +08:00
jobs FEATURE: Thread indicator improvements and participants (#21909) 2023-06-15 10:49:27 +10:00
lib FIX: Add aria-label attribute to cooked hashtags (#22182) 2023-06-20 15:47:17 +10:00
mailers DEV: fix and enable flaky specs (#21753) 2023-05-30 14:25:14 +04:00
models FIX: Add aria-label attribute to cooked hashtags (#22182) 2023-06-20 15:47:17 +10:00
queries/chat FEATURE: Allow users to manually track threads without replying (#22100) 2023-06-16 12:08:26 +10:00
requests DEV: Remove Discourse.redis.delete_prefixed (#22103) 2023-06-16 12:44:35 +10:00
serializer FEATURE: Thread indicator improvements and participants (#21909) 2023-06-15 10:49:27 +10:00
services FEATURE: Allow users to manually track threads without replying (#22100) 2023-06-16 12:08:26 +10:00
support DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
system FIX: Add aria-label attribute to cooked hashtags (#22182) 2023-06-20 15:47:17 +10:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb FEATURE: Allow users to manually track threads without replying (#22100) 2023-06-16 12:08:26 +10:00
plugin_spec.rb UX: update chat icon to d-chat (#20744) 2023-03-21 10:40:42 -04:00