webcomponents / custom-elements-everywhere

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

Testing exposed methods #2300

Open padcom opened 10 months ago

padcom commented 10 months 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 10 months 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