Commit 7b8ebdec authored by catch's avatar catch
Browse files

Issue #3205597 by Prabhat Burnwal, mherchel, Gauravmahlawat, monojithalder,...

Issue #3205597 by Prabhat Burnwal, mherchel, Gauravmahlawat, monojithalder, marcusvsouza, djsagar, kiran.kadam911, Abhijith S, vikashsoni, lauriii, Gábor Hojtsy: Olivero comment form should have title
parent 5787a570
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ module.exports = {
    browser
      .drupalRelativeURL('/node/1')
      .assert.containsText('body', 'Article without comments')
      .assert.not.elementPresent(commentTitleSelector);
      .assert.not.elementPresent(commentCountSelector);
  },
  'Article with comments should display count': (browser) => {
    browser
+7 −2
Original line number Diff line number Diff line
@@ -31,9 +31,14 @@
{{ attach_library('olivero/comments') }}
<section{{ attributes.setAttribute('data-drupal-selector', 'comments').addClass('comments') }}>

  {% if comments and not label_hidden %}
  {% if not label_hidden %}
    {{ title_prefix }}
    <h2{{ title_attributes.addClass('comments__title') }}>{{ label }} <span class="comments__count">{{ comment_count }}</span></h2>
    <h2{{ title_attributes.addClass('comments__title') }}>
      {{- label -}}
      {%- if comments -%}
        <span class="comments__count">{{ comment_count }}</span>
      {%- endif -%}
    </h2>
    {{ title_suffix }}
  {% endif %}