Skip to content

ci(react): Add basic catalog integration tests.#1625

Open
ditman wants to merge 5 commits into
a2ui-project:mainfrom
ditman:react-add-integration-tests
Open

ci(react): Add basic catalog integration tests.#1625
ditman wants to merge 5 commits into
a2ui-project:mainfrom
ditman:react-add-integration-tests

Conversation

@ditman

@ditman ditman commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR adds the remaining integration tests to the React adapter.

There are some minor changes to the react integration testing harness to improve the interaction with elements that require some more than a "click".

Pre-launch Checklist

If you need help, consider asking for advice on the discussion board.

gemini-code-assist[bot]

This comment was marked as outdated.

@github-project-automation github-project-automation Bot moved this to Todo in A2UI Jun 12, 2026
@ditman ditman force-pushed the react-add-integration-tests branch from d845bba to d34360e Compare June 16, 2026 01:02
@ditman

ditman commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini review

@ditman ditman marked this pull request as ready for review June 16, 2026 01:04

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces deep cloning of messages using structuredClone in App.tsx to prevent unintended mutations, refactors the test utility whenSettled to avoid nested act blocks, and adds a comprehensive suite of tests for various UI examples under tests/v0_9/. The review feedback highlights several opportunities to improve code safety in the new test files by replacing the non-null assertion operator (!) with optional chaining (?.) on lookup results that may fail.

Comment thread renderers/react/a2ui_explorer/tests/v0_9/24_recipe-card.test.tsx Outdated
Comment thread renderers/react/a2ui_explorer/tests/v0_9/24_recipe-card.test.tsx Outdated
Comment thread renderers/react/a2ui_explorer/tests/v0_9/30_live-invitation-builder.test.tsx Outdated
Comment thread renderers/react/a2ui_explorer/tests/v0_9/30_live-invitation-builder.test.tsx Outdated
Comment thread renderers/react/a2ui_explorer/tests/v0_9/29_movie-card.test.tsx Outdated
@ditman

ditman commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

OK, this should be ready for @josemontespg to take a look!

@ditman ditman changed the title React add integration tests ci(react): Add basic catalog integration tests. Jun 16, 2026
@ditman ditman force-pushed the react-add-integration-tests branch from 1a8aa0a to 749bb77 Compare June 16, 2026 20:55
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.

1 participant