Follow-up for #3568264: add explicit test coverage proving code components can have multi-value `enum` prop shapes
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3581581. -->
Reported by: [kunal.sachdev](https://www.drupal.org/user/3685163)
Related to !917
>>>
<h3 id="overview">Overview</h3>
<p><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3568264" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3568264</a></span> introduced back-end support (config schema description) for code components to contain <code>type: array</code> props aka multiple-cardinality support. <strong>It missed one important part: multiple-cardinality support for string/integer <code>enum</code> prop shapes.</strong></p>
<p>Currently there is no support for selecting or saving multiple values for a multiple value list prop for a component while editing in Canvas component editor. While the UI support is being handled in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3581110" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3581110</a></span>, the backend currently lacks the infrastructure to receive, validate, and persist the selected values for the list prop.</p>
<h3 id="proposed-resolution">Steps to Reproduce:</h3>
<ol>
<li>Create a Component with a list prop that allows multiple values.</li>
<li>Navigate to the Canvas editor and add this component to the page.</li>
<li>Attempt to select multiple values in the list prop. Observe that only a single value can be selected/saved.</li>
</ol>
> Related issue: [Issue #3581110](https://www.drupal.org/node/3581110)
> Related issue: [Issue #3581478](https://www.drupal.org/node/3581478)
> Related issue: [Issue #3568264](https://www.drupal.org/node/3568264)
issue