diff --git a/tests/cypress/integration/mutation.spec.js b/tests/cypress/integration/mutation.spec.js index 283de6c70..cf4244086 100644 --- a/tests/cypress/integration/mutation.spec.js +++ b/tests/cypress/integration/mutation.spec.js @@ -136,6 +136,36 @@ test('can pause and queue mutations for later resuming/flushing', } ) +test('add and move element are been initialized', + html` +
+ + + +
+ `, + ({ get }) => { + get('span#one').should(haveText('0')) + get('span#two').should(haveText('0')) + get('button').click() + get('span#one').should(haveText('1')) + get('span#two').should(haveText('1')) + } +) + test('does not initialise components twice when contained in multiple mutations', html`