@avalix/chroma 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -2
- package/dist/index.d.mts +53987 -0
- package/dist/{index.js → index.mjs} +79 -51
- package/package.json +15 -14
- package/scripts/download-extensions.ts +26 -1
- package/src/context-playwright/index.ts +0 -1
- package/src/context-playwright/types.ts +1 -0
- package/src/context-playwright/wallet-factory.ts +17 -0
- package/src/utils/download-extension.ts +33 -6
- package/src/wallets/polkadot-js.ts +49 -19
- package/src/wallets/talisman.ts +62 -38
- package/dist/index.d.ts +0 -64
package/README.md
CHANGED
|
@@ -17,11 +17,21 @@ npm install @avalix/chroma @playwright/test
|
|
|
17
17
|
Before running your tests, you need to download the wallet extensions:
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npx
|
|
20
|
+
npx chroma download-extensions
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
This will download the wallet extensions (Polkadot JS and Talisman) to `./.chroma` directory in your project root.
|
|
24
24
|
|
|
25
|
+
**Tip**: Add this to your `package.json` scripts for convenience:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"scripts": {
|
|
30
|
+
"prepare": "chroma download-extensions"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
25
35
|
**Important**: You must run this command before running Playwright tests. If the extension is not found, tests will fail with a helpful error message.
|
|
26
36
|
|
|
27
37
|
## Quick Start
|
|
@@ -265,7 +275,7 @@ test('talisman example', async ({ page, wallets }) => {
|
|
|
265
275
|
Run the download command to get the required wallet extensions:
|
|
266
276
|
|
|
267
277
|
```bash
|
|
268
|
-
npx
|
|
278
|
+
npx chroma download-extensions
|
|
269
279
|
```
|
|
270
280
|
|
|
271
281
|
Extensions will be downloaded to `./.chroma` directory in your project root. Add this directory to your `.gitignore`:
|
|
@@ -279,6 +289,14 @@ Extensions will be downloaded to `./.chroma` directory in your project root. Add
|
|
|
279
289
|
- **Slow Motion**: 150ms delay between actions (configurable)
|
|
280
290
|
- **Extension Loading**: Automatically loads configured wallet extensions
|
|
281
291
|
|
|
292
|
+
## Supported Chains
|
|
293
|
+
|
|
294
|
+
| Chain | Status |
|
|
295
|
+
|-------|--------|
|
|
296
|
+
| Polkadot | ✅ Supported |
|
|
297
|
+
| Ethereum | ✅ Supported |
|
|
298
|
+
| Solana | ⏳ Planned |
|
|
299
|
+
|
|
282
300
|
## Supported Wallets
|
|
283
301
|
|
|
284
302
|
| Wallet | Status | Version |
|