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
There is no way to remove boolean attributes with the existing E2EElement APIs. This is particularly problematic if your test involves a native element that has a boolean attribute that is not reflected via its matching property (e.g., input#checked).
Expected behavior:
E2EElement should provide the necessary APIs for the following type of test:
it("should react when input#checked changes",async()=>{constpage=awaitnewE2EPage();awaitpage.setContent("<my-component><input type='radio' slot='radio' value='1' checked></my-component>");constelement=awaitpage.find("my-component");constradio=awaitpage.find("my-component >>> input[slot=radio]");letchecked=awaitelement.getProperty("checked");expect(checked).toBeTruthy();radio.removeAttribute("checked");// or toggleAttributechecked=awaitelement.getProperty("checked");expect(checked).toBeFalsy();});
Steps to reproduce:
See ☝️.
Related code:
See ☝️.
Other information:
N/A
The text was updated successfully, but these errors were encountered:
Stencil version:
I'm submitting a:
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
There is no way to remove boolean attributes with the existing
E2EElement
APIs. This is particularly problematic if your test involves a native element that has a boolean attribute that is not reflected via its matching property (e.g.,input#checked
).Expected behavior:
E2EElement
should provide the necessary APIs for the following type of test:Steps to reproduce:
See ☝️.
Related code:
See ☝️.
Other information:
N/A
The text was updated successfully, but these errors were encountered: