Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linting-and-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pnpm install --no-frozen-lockfile

- name: Run Linting
run: pnpm run lint
run: pnpm run check:ci

- name: Run unit tests
run: pnpm run tests
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @tobelabs/chainwright

## 0.10.11

### Patch Changes

- [Linting] - Fix linting that breaks deployment

## 0.10.10

### Patch Changes
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chainwright",
"version": "0.10.10",
"version": "0.10.11",
"description": "Playwright Web3 wallet testing framework for end-to-end dApp automation with MetaMask, Phantom, Solflare, Petra, Meteor, and Keplr",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -83,6 +83,8 @@
"setup-wallets": "tsx src/cli/index.ts ./tests/wallet-setup --all -f",
"tests": "vitest --exclude '**/*.spec.ts'",
"lint": "biome check ./src",
"check:types": "tsc",
"check:ci": "pnpm run lint && pnpm run check:types",
"format": "biome format --write ./src",
"tests:e2e:debug": "playwright test --config=tests/playwright.config.ts --debug",
"tests:e2e:ui": "playwright test --config=tests/playwright.config.ts --ui",
Expand Down
7 changes: 3 additions & 4 deletions src/wallets/phantom/phantom-worker-scope-fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ export const phantomWorkerScopeFixture = ({ slowMo, profileName }: WalletProfile
],
autoCloseNotification: [
async ({ workerScopeContents }, use) => {
let cancelled = false;
const isCancelled = () => cancelled;
const runner = autoClosePhantomNotification(workerScopeContents.walletPage, isCancelled);
const autoCloseController = new AbortController();
const runner = autoClosePhantomNotification(workerScopeContents.walletPage, autoCloseController.signal);

await use(undefined);

cancelled = true;
autoCloseController.abort();
await runner.catch((error) => {
console.error(`Auto close notification error: ${(error as Error).message}`);
});
Expand Down
10 changes: 6 additions & 4 deletions src/wallets/solflare/solflare-worker-scope-fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ export const solflareWorkerScopeFixture = ({ slowMo, profileName }: WalletProfil
],
autoCloseNotification: [
async ({ workerScopeContents }, use) => {
let cancelled = false;
const isCancelled = () => cancelled;
const runner = autoCloseSolflareNotification(workerScopeContents.walletPage, isCancelled);
const autoCloseController = new AbortController();
const runner = autoCloseSolflareNotification(
workerScopeContents.walletPage,
autoCloseController.signal,
);

await use(undefined);

cancelled = true;
autoCloseController.abort();
await runner.catch((error) => {
console.error(`Auto close notification error: ${(error as Error).message}`);
});
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"@/tests/*": ["./tests/*"]
}
},
"include": ["**/*.ts", "**/*.tsx"],
"include": ["src/**/*.ts", "tests/**/*.ts", "environment.d.ts"],
"exclude": ["node_modules", "docs"]
}