webcomponents / webcomponents/custom-elements-everywhere

Testing exposed methods

Open
#2,300 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
108
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.