commit a807b027e2812d5116f5ec873b941974bd1960de
Author: Wim Leers <wim.leers@acquia.com>
Date:   Tue Sep 10 14:16:05 2024 +0200

    Also test `type: integer, enum: […]`.

diff --git a/tests/modules/sdc_test_all_props/components/all-props/all-props.component.yml b/tests/modules/sdc_test_all_props/components/all-props/all-props.component.yml
index 4a843ef3..6293cd67 100644
--- a/tests/modules/sdc_test_all_props/components/all-props/all-props.component.yml
+++ b/tests/modules/sdc_test_all_props/components/all-props/all-props.component.yml
@@ -169,6 +169,14 @@ props:
       type: integer
       examples:
         - -42
+    test_integer_enum:
+      title: 'Integer - Enum'
+      type: integer
+      enum:
+        - 6
+        - 20
+      examples:
+        - 6
     test_integer_range_minimum:
       title: 'Integer, minimum=0'
       type: integer
diff --git a/tests/modules/sdc_test_all_props/components/all-props/all-props.twig b/tests/modules/sdc_test_all_props/components/all-props/all-props.twig
index bbb67d81..2d5a24c6 100644
--- a/tests/modules/sdc_test_all_props/components/all-props/all-props.twig
+++ b/tests/modules/sdc_test_all_props/components/all-props/all-props.twig
@@ -61,6 +61,8 @@
   <dl>
     <dt>test_integer</dt>
     <dd id="test-integer"><code>{{ test_integer }}</code></dd>
+    <dt>test_integer_enum</dt>
+    <dd id="test-integer-enum"><code>{{ test_integer_enum }}</code></dd>
     <dt>test_integer_range_minimum</dt>
     <dd id="test-integer-range-minimum"><code>{{ test_integer_range_minimum }}</code></dd>
     <dt>test_integer_range_minimum_maximum_timestamps</dt>
diff --git a/tests/src/Cypress/cypress/e2e/prop-types.cy.js b/tests/src/Cypress/cypress/e2e/prop-types.cy.js
index 4e05f5cf..646c6fca 100644
--- a/tests/src/Cypress/cypress/e2e/prop-types.cy.js
+++ b/tests/src/Cypress/cypress/e2e/prop-types.cy.js
@@ -155,6 +155,20 @@ describe('Prop types editing', () => {
      cy.waitForElementContentInIframe('#test-string-enum', 'bar')
    })
 
+  it ('Integer - Enum (select)', () => {
+    cy.findByLabelText('Integer - Enum').should('have.value', 6)
+    cy.waitForElementContentInIframe('#test-integer-enum', 6)
+    cy.findByLabelText('Integer - Enum').select(0)
+    cy.findByLabelText('Integer - Enum').should('have.value', '_none')
+    cy.waitForElementContentNotInIframe('#test-integer-enum', 6)
+    cy.testInIframe('#test-integer-enum code', (enumPreview) => {
+      expect(enumPreview.textContent).to.eq('')
+    })
+    cy.findByLabelText('Integer - Enum').select(2)
+    cy.findByLabelText('Integer - Enum').should('have.value', 20)
+    cy.waitForElementContentInIframe('#test-integer-enum', 20)
+  })
+
   it ('Date + Time widget', () => {
     // @todo these tests confirm that the date+time inputs can be changed and the
     // preview updates in response. It is not yet confirmed if the values found
