Skip to content

Add tests for AI Assistant #3820

@mrCherry97

Description

@mrCherry97

Description
We need to implement comprehensive tests for the new AI Assistant feature in Kyma Dashboard. This includes both unit tests for all new components and integration tests to verify the main user flows.

Scope of the tests
Unit Tests

  • Write unit tests for all new React components related to the AI Assistant
  • Cover all utility functions and hooks
  • Test different states and props combinations

Integration Tests

  • Test opening the AI Assistant from different entry points
  • Verify that the initial message is properly rendered
  • Check that the entire view is rendered correctly (including input field, send button, etc.)
  • Test the loading states and error handling

Acceptance Criteria

  • All new components have corresponding test files
  • Tests follow the same patterns as existing tests in the codebase
  • Tests are properly mocked where needed
  • Integration tests cover the main user flows
  • All tests pass in the CI pipeline

Attachments

Metadata

Metadata

Assignees

Labels

area/testsIssues or PRs related to tests

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions