Testing

There are some differences between testing Gem App and React/Vue App, such as testing in the browser environment. open-wc has some practices of WebComponents.

Unit Test

If you use Gem to develop a component library, you can use wtr to test, you can refer to gem-lib-boilerplate for configuration.

E2E

You can use cypress, but it is difficult to select elements (v4.8.0 provides experimental support)

TIP

Can use deep-query to help select elements and add custom commands to Cypress, Example.