Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OEL-3420: Added check for rich text paragraph title. #320

Open
wants to merge 4 commits into
base: 1.x
Choose a base branch
from

Conversation

tibi2303
Copy link
Contributor

@tibi2303 tibi2303 commented Oct 8, 2024

No description provided.

Copy link
Contributor

@drishu drishu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add a few lines in the paragraphs test to assert the absense of the wrapper and presence when needed.

{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
title: content.field_oe_title,
} only %}
{% if content.field_oe_title is not empty %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the |field_value filter to avoid render meta giving false negatives

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -46,6 +46,7 @@ abstract class ParagraphsTestBase extends AbstractKernelTestBase {
'paragraphs',
'text',
'typed_link',
'twig_field_value',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@@ -108,7 +108,7 @@ public function testRendering(): void {
'second option',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add

/**
   * {@inheritdoc}
   */
  protected static $modules = [
    'twig_field_value',
  ];

the reason is that only this one needs it, lets start to be more efficient, the tests are slow enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants