Add layout fixture and tests for page builder agent
See #3591457 (closed) for full context.
Testing instructions
- Add
$settings['extension_discovery_scan_tests'] = TRUE;tosettings.phpif it is not already present. - Enable the test module:
drush en canvas_ai_agents_test. - Go to
/admin/config/ai/agents-test/groupand click Import AI Agent Test Group. - Import
modules/canvas_ai/tests/modules/canvas_ai_agents_test/tests/test_drupal_canvas_page_builder_agent_test_group.yaml. - Click Run test group and select the AI model to run against.
- Confirm the 20 tests execute and the group passes (approval threshold is 90%).
- Clean up:
drush pmu canvas_ai_agents_test.
Closes #3591457 (closed)
AI-Generated: Yes (Used Claude Code to author the layout fixtures and page builder test cases).
Edited by AKHIL BABU