Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 358ee1e

Browse files
authored
feat: Initial E2E test of chrome extensions (#156)
* initial e2e chrome extensions * doc * rm examples * doc password mnemonic * connectOkxKeplr * rm skip * rm unused comment * refactor keplr * move fill inputs out * fill inputs by placeholder, okx refactor * update ids * update keplr selectors * update onekey id, adjust selectors
1 parent 5f56f32 commit 358ee1e

File tree

15 files changed

+1346
-4
lines changed

15 files changed

+1346
-4
lines changed

docs/E2E.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# E2E Testing Setup Guide
2+
3+
## Overview
4+
5+
These tests use Playwright to launch a Chromium instance with selected wallet extensions. The required extensions (OKX, Keplr, etc.) download automatically as part of the test setup.
6+
7+
You need to provide your 12 words mnemonic and a password (that is used for the Chrome extension) in `.env.local`:
8+
9+
```env
10+
E2E_WALLET_MNEMONIC="one two three four five six seven eight nine ten eleven twelve"
11+
E2E_WALLET_PASSWORD="SomePasswordWithSymbols"
12+
```
13+
14+
Use the following command to run the E2E tests:
15+
16+
```bash
17+
npm run test:e2e
18+
```
19+
20+
Additional test commands:
21+
22+
```bash
23+
npm run test:e2e:ui # Run tests with UI
24+
npm run test:e2e:debug # Run tests in debug mode
25+
npm run test:e2e:headed # Run tests in headed mode
26+
```

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default tseslint.config(
2828
},
2929
rules: {
3030
"@typescript-eslint/no-explicit-any": 0,
31+
"no-empty-pattern": 0,
3132
"import/order": [
3233
"error",
3334
{

0 commit comments

Comments
 (0)