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-queryto help select elements and add custom commands to Cypress, Example.
Last Updated:
12/14/2023, 02:45:22 AM