Enhance RenderElementTestTrait::assertRenderElement() to test for attached libraries

Created on 26 May 2023, over 1 year ago
Updated 15 June 2023, over 1 year ago

Problem/Motivation

I would like to use assertRenderElement() to test for attached libraries. Maybe adding a new assertRenderAttachedLibraries() method.

https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21... supports:

  • 'library' (asset libraries)
  • 'drupalSettings' (JavaScript settings)
  • 'feed' (RSS feeds)
  • 'html_head' (tags in HTML )
  • 'html_head_link' (
    tags in HTML )
  • 'http_header' (HTTP headers and status code)
✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024