Skip to content

Commit

Permalink
fix: e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed May 15, 2024
1 parent afd3409 commit e907abc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"build": "lerna run --stream build",
"build:main": "lerna run build --scope=neuron-wallet",
"release": "yarn build && ./scripts/copy-ui-files.sh && ./scripts/release.sh",
"package:e2e": "yarn build && ./scripts/copy-ui-files.sh && npx ncp ./packages/neuron-wallet/dist/ ./packages/e2e/dist",
"package:e2e": "yarn build && ./scripts/copy-ui-files.sh",
"package:test": "yarn build && ./scripts/copy-ui-files.sh && ./scripts/package-for-test.sh",
"test": "cross-env NODE_OPTIONS=--openssl-legacy-provider lerna run --parallel --load-env-files=false test",
"test:e2e": "cd packages/e2e && yarn test:e2e",
"test:e2e": "concurrently \"cross-env BROWSER=none yarn run start:ui\" \"wait-on -t 10000 http://127.0.0.1:3000 && cd packages/e2e && yarn test:e2e\"",
"test:ci": "yarn build:main && yarn test",
"lint": "lerna run --stream lint",
"postinstall": "husky install",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { test, expect } from "@playwright/test";
let electronApp: ElectronApplication;

test.beforeAll(async () => {
electronApp = await electron.launch({ args: ["./dist/main.js"] });
electronApp = await electron.launch({ args: ["../../packages/neuron-wallet/dist/main.js"] });
electronApp.on("window", async (page) => {
const filename = page.url()?.split("/").pop();
console.log(`Window opened: ${filename}`);
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nervosnetwork/neuron-e2e",
"version": "0.112.0",
"version": "0.114.3",
"description": "E2E tests of Neuron",
"author": "Keith <keithwhisper@gmail.com>",
"homepage": "https://github.com/nervosnetwork/neuron#readme",
Expand All @@ -13,7 +13,7 @@
},
"scripts": {
"build:e2e": "cd .. && yarn package:e2e",
"test:e2e": "npx cross-env NODE_ENV=test npx playwright test"
"test:e2e": "npx playwright test"
},
"bugs": {
"url": "https://github.com/nervosnetwork/neuron/issues"
Expand Down

1 comment on commit e907abc

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 9091286386

Please sign in to comment.