<% if story.public_reactions_count > 0 %>
-
">
+ ">
<%= crayons_icon_tag("small-heart", title: t("views.reactions.summary.title")) %>
<%= t("views.reactions.summary.count_html",
count: story.public_reactions_count,
@@ -129,7 +129,7 @@
<% end %>
<% if story.comments_count > 0 %>
-
">
+ ">
<%= crayons_icon_tag("small-comment", title: t("views.comments.summary.title")) %>
<%= t("views.comments.summary.count_html",
count: story.comments_count,
@@ -137,7 +137,7 @@
end: "".html_safe) %>
<% else %>
-
">
+ ">
<%= crayons_icon_tag("small-comment", title: t("views.comments.summary.title")) %>
<%= t("views.comments.add") %>
diff --git a/config/locales/views/articles/en.yml b/config/locales/views/articles/en.yml
index 0d4e3790a..5d9d5beb5 100644
--- a/config/locales/views/articles/en.yml
+++ b/config/locales/views/articles/en.yml
@@ -7,7 +7,7 @@ en:
actions:
aria_label: Article actions
comments:
- aria_label: Comments for post %{title} (%{num})
+ aria_label: Add a comment to post - %{title}
subtitle_html: Discussion %{num}
num: "(%{num})"
subscribe: Subscribe
diff --git a/config/locales/views/articles/fr.yml b/config/locales/views/articles/fr.yml
index 002897b41..fec64bc66 100644
--- a/config/locales/views/articles/fr.yml
+++ b/config/locales/views/articles/fr.yml
@@ -7,7 +7,7 @@ fr:
actions:
aria_label: Article actions
comments:
- aria_label: Comments for post %{title} (%{num})
+ aria_label: Add a comment to post - %{title}
subtitle_html: Discussion %{num}
num: "(%{num})"
subscribe: Subscribe
diff --git a/cypress/e2e/seededFlows/homeFeedFlows/feedNavigation.spec.js b/cypress/e2e/seededFlows/homeFeedFlows/feedNavigation.spec.js
index 6f35a9588..2b0705339 100644
--- a/cypress/e2e/seededFlows/homeFeedFlows/feedNavigation.spec.js
+++ b/cypress/e2e/seededFlows/homeFeedFlows/feedNavigation.spec.js
@@ -157,4 +157,18 @@ describe('Home Feed Navigation', () => {
cy.url().should('contain', '/latest');
cy.findByRole('heading', { name: '#tag1' });
});
+
+ it('should navigate to article comment area', function () {
+ cy.get('article.crayons-story')
+ .first()
+ .within(() => {
+ cy.findByRole('link', { name: /^Add a comment to post -/ }).click();
+ });
+
+ cy.url().should('contain', '#comments');
+
+ cy.findByRole('textbox', {
+ name: 'Add a comment to the discussion',
+ }).should('have.focus');
+ });
});