You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn
@Prop() "selectedIndex" on <inner-one> is immutable but was modified from within the component.
More information: https://stenciljs.com/docs/properties#prop-mutability
41 | expect(B1?.innerHTML).toEqual('1');
42 |> 43 | componentEl.selectedIndex = 2;| ^
44 | await page.waitForChanges();
45 |
46 | const B = componentEl?.shadowRoot?.querySelector('div.blue');
at consoleDevWarn (node_modules/@stencil/core/internal/testing/index.js:162:11)
at InnerOne.set (node_modules/@stencil/core/internal/testing/index.js:2882:17)
at InnerOne.set [as selectedIndex] (node_modules/@stencil/core/internal/testing/index.js:2895:26)
at setterSetVal (node_modules/@stencil/core/internal/testing/index.js:2921:48)
at HostElement.set [as selectedIndex] (node_modules/@stencil/core/internal/testing/index.js:2925:17)
at Object.<anonymous> (src/components/inner-one/inner-one.spec.tsx:43:30)
!Important info!
Only the second test fires the warning, if you change the tests order, then which one is the second will fire warning. If you remove the second test - there's no warning.
It does not matter if the tests are in the same "describe" or in different ones. Also, if there are more than 2 tests, then 2nd, 3rd, ... will fire the warning
Code Reproduction URL
No response
Additional Information
at InnerOne.set calls appear repeated. There are two in the second test warning, 3 in the third test warning, and 4 in the 4th.
The text was updated successfully, but these errors were encountered:
Prerequisites
Stencil Version
4.24.0
Current Behavior
spec.tsx tests fire false waring about "Prop is immutable but was modified from within the component"
Expected Behavior
No false warning
System Info
Steps to Reproduce
Component:
the test:
Message:
!Important info!
Only the second test fires the warning, if you change the tests order, then which one is the second will fire warning. If you remove the second test - there's no warning.
It does not matter if the tests are in the same "describe" or in different ones. Also, if there are more than 2 tests, then 2nd, 3rd, ... will fire the warning
Code Reproduction URL
No response
Additional Information
at InnerOne.set
calls appear repeated. There are two in the second test warning, 3 in the third test warning, and 4 in the 4th.The text was updated successfully, but these errors were encountered: