Tests located in `e2e/test/scenarios/embedding-sdk` are used to run automated checks for the Embedding SDK.
Embedding SDK is a library, and not an application. We use Storybook to host public components, and we run tests against it.
In order to run stories used for tests locally, please check [storybook setup docs](https://github.com/metabase/metabase/blob/master/enterprise/frontend/src/embedding-sdk/README.md#storybook)
## DB Snapshots
At the beginning of each test suite we wipe the backend's db and settings cache. This ensures that the test suite starts in a predictable state.
You can use storybook to run SDK components during local development.
When you have Metabase instance running:
```bash
yarn storybook-embedding-sdk
```
### Initial configuration
1. Set JWT secret to be "`0000000000000000000000000000000000000000000000000000000000000000`" in Admin > Authentication > JWT > String used by the JWT signing key
1. Make sure "User Provisioning" setting is set to "`on`".
1. Set Authorized Origins to "`*`" in Admin > Embedding > Interactive embedding
## Building locally
First you need to build the Metabase Embedding SDK for React locally: