webcomponents / custom-elements-everywhere

Custom Element + Framework Interoperability Tests.
https://custom-elements-everywhere.com
Other
1.19k stars 103 forks source link

Testing exposed methods #2300

Open padcom opened 1 year ago

padcom commented 1 year ago

The current test suite focuses on properties and attributes. That is only half of the DOM. You need to be able to also provide methods on your custom elements. Not having that ability automatically makes the APIs awkward (instance.isOpen = true instead of instance.open() rather than in addition to).

The current version of test cases is not representative and is tailored towards frameworks, not developers using them. It's basically a lie what the reports say.

AleksejDix commented 1 year ago

I can agree that Those test are not covering everything what is needed.

Also reflecting attributes on the components to show their state is not tested