This repository contains several examples for testing web components using WebdriverIO. They are using different frameworks and set-ups and we will continue to add more examples as we improve support for more environments. All examples use WebdriverIO v8 and the @wdio/browser-runner
to run tests within the browser environment.
Current examples are:
lit-typescript-vite
: Lit + TypeScript compiled with Vitepreact-typescript-vite
: Preact + TypeScript compiled with Vitereact-typescript-vite
: React + TypeScript compiled with Vitesvelte-typescript-vite
: Svelte + TypeScript compiled with Vitevue-typescript-vite
: Vue.js + TypeScript compiled with Vitenuxt
: Nuxtsolidjs-typescript-vite
: Solid.js + TypeScript compiled with Viteenhance
: Enhancecreate-react-app
: Create React Appstencil-component-starter
: Stencil Component Starter using Stencil
If you are missing an example, feel free to raise an issue.
You can test component testing with WebdriverIO using given examples by:
-
Switch to the desired example directory
cd ./<example-directory>
-
Install dependencies:
npm install
-
Run WebdriverIO tests:
npm run wdio
For more information on browser and component testing using WebdriverIO, check out the project docs.
Contributions adding more examples or extending existing examples are very welcome. For questions around this topic, feel free to join our Gitter Support Channel or raise an issue.