Color:
diff --git a/tests/cypress/integration/directives/x-model.spec.js b/tests/cypress/integration/directives/x-model.spec.js
index 4933a34e3..b55bc14fc 100644
--- a/tests/cypress/integration/directives/x-model.spec.js
+++ b/tests/cypress/integration/directives/x-model.spec.js
@@ -738,6 +738,37 @@ test('x-model initializes multiple select values rendered with x-for', html`
get('option[value="Yellow"]').should('be.selected')
})
+test('x-model initializes select values rendered with x-for inside an optgroup', html`
+
+
+
+`, ({ get }) => {
+ get('select').should(haveValue('Orange'))
+})
+
+test('x-model re-syncs when x-for adds a matching option inside an optgroup', html`
+
+
+
+
+
+`, ({ get }) => {
+ get('button').click()
+ get('select').should(haveValue('Green'))
+})
+
test('x-model does not fire change handlers when x-for options initialize', html`