[PP-1] Failing kernel tests for all ways a component source can fail to render on the server side

Created on 8 April 2025, about 1 month ago

Overview

This is blocked by ๐Ÿ“Œ Introduce unit test coverage for both ComponentSource plugins (Block + SDC) Active .
This blocks ๐Ÿ“Œ Improve server-side error handling Active .

Implement explicit kernel tests for 5 of the 6 acceptance criteria at ๐ŸŒฑ [META] Robust component instance error handling Active .

  1. A (whose ) used as a component instance in an XB component tree does NOT make the rest of the component tree unusable.
  2. An (whose ) used as a component instance in an XB component tree does NOT make the rest of the component tree unusable .
  3. out of scope in this issue
  4. A (whose ) used as a component instance whose explicit inputs are invalid does NOT make the rest of the component tree unusable (except that if this code component has slots, those slots MAY not appear in the preview, but they would appear in the โ€œLayersโ€ view).
  5. A used as a component instance whose does NOT make the rest of the component tree unusable.
  6. An used as a component instance whose does NOT make the rest of the component tree unusable.
  7. A used as a component instance whose does NOT make the rest of the component tree unusable.

Proposed resolution

Add the following:

  /**
   * @dataProvider providerRenderComponent
   */
  public function testRenderComponent(array $inputs, string $componentUuid, bool $isPreview = FALSE, ?\Exception $expected_exception, string $expected_output): {
    
  }

to \Drupal\Tests\experience_builder\Kernel\Plugin\ExperienceBuilder\ComponentSource\(Block|Js|SingleDirectory)ComponentTest

User interface changes

None.

๐Ÿ“Œ Task
Status

Active

Version

0.0

Component

Component sources

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024