Problem/Motivation

This test failed on Drupal 11.3, but works as expected on Drupal 11.2

Drupal\Tests\html_title\Functional\HtmlTitleViewsTest::testViewsRssStyle
Behat\Mink\Exception\ExpectationException: The string "Test sup-tag" was not found anywhere in the HTML response of the current page.

Proposed resolution

Need to investigate and fix it (I thinks this problem is related to the optional configs in Drupal 11.3)

Issue fork html_title-3570745

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vitaliyb98 created an issue. See original summary.

atoll’s picture

Assigned: Unassigned » atoll
Issue tags: +LutskGCW26

atoll’s picture

Assigned: atoll » Unassigned
Status: Active » Needs review

HtmlTitleViewsTest::testViewsRssStyle() fails on Drupal 11.3, while it works earlier versions.

The RSS feed at /rss.xml no longer includes nodes unless they are promoted to the front page.
Test nodes were published but not promoted, so the feed contained no elements and the expected titles were missing.

Proposed resolution:
Explicitly mark all test nodes as promoted by setting:
'promote' => TRUE
when creating nodes in the test setup.

In this case test passes on Drupal 11.3 and continues to work as expected on earlier versions.

vitaliyb98’s picture

Status: Needs review » Fixed

Hi, thanks for your fix!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • atoll committed ee534faa on 8.x-1.x
    feat: #3570745 Fix failed test which is related to RSS.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.