Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing exposed methods #2300

Open
padcom opened this issue Nov 30, 2023 · 1 comment
Open

Testing exposed methods #2300

padcom opened this issue Nov 30, 2023 · 1 comment

Comments

@padcom
Copy link

padcom commented Nov 30, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants