Skip to content

fix(components/layout): update description list harness to use empty array pattern#11

Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1768244872-harness-empty-array-pattern
Open

fix(components/layout): update description list harness to use empty array pattern#11
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1768244872-harness-empty-array-pattern

Conversation

@devin-ai-integration
Copy link

@devin-ai-integration devin-ai-integration bot commented Jan 12, 2026

Summary

Updates the description list harness to align with the simplified harness API breaking change in SKY UX 10.0.0. The getContent() method now returns an empty array instead of throwing an error when no description list content items are found.

Changes

Harness implementation (description-list-harness.ts):

  • Removed error-throwing logic when no items are found
  • getContent() now returns the result directly (empty array if no items)

Test file (description-list-harness.spec.ts):

  • Updated test to expect [] instead of expecting a rejected promise with error message

This change follows the migration pattern documented in docs/addressing-breaking-changes/simplified-child-harness-methods/README.md.

Review & Testing Checklist for Human

  • Verify the change aligns with the empty array pattern used by other harnesses (e.g., SkyActionButtonContainerHarness.getActionButtons())
  • Confirm no other code in the codebase depends on catching the 'Unable to find any description list content.' error

Notes

…mpty array pattern

Update the test for getContent() to expect an empty array instead of
throwing an error when no description list content items are found.
This aligns with the simplified harness API where methods returning
arrays now return empty arrays instead of throwing errors.

Co-Authored-By: benc@cognition.ai <Benc@windsurf.com>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

…ty array instead of throwing error

Co-Authored-By: benc@cognition.ai <Benc@windsurf.com>
@devin-ai-integration devin-ai-integration bot changed the title fix(components/layout): update description list harness test to use empty array pattern fix(components/layout): update description list harness to use empty array pattern Jan 12, 2026
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.

0 participants