From 853e0d10e87b6eeb1d315f91b35fc2d39707fb68 Mon Sep 17 00:00:00 2001 From: Leonardo de Jesus Diz Conde Date: Fri, 6 Oct 2023 18:01:45 -0300 Subject: [PATCH] CU-86a0vq1ak - Fully implement WcSdk e2e tests (finish the connection and use every command expecing the responses) --- .github/workflows/check-build-and-test.yml | 3 --- e2e/package.json | 1 + examples/wc-wallet-react/config-overrides.js | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-build-and-test.yml b/.github/workflows/check-build-and-test.yml index 2888f15..d28b08e 100644 --- a/.github/workflows/check-build-and-test.yml +++ b/.github/workflows/check-build-and-test.yml @@ -40,9 +40,6 @@ jobs: - name: Build Examples working-directory: ./e2e run: pnpm ex:build:unix - - name: Prepare to Run Test E2E - working-directory: ./e2e - run: pnpm install -g serve && pnpm playwright install - name: Test E2E working-directory: ./e2e run: pnpm test:headless diff --git a/e2e/package.json b/e2e/package.json index f1b521d..1d663f3 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -12,6 +12,7 @@ "ex:install:unix": "cd ../examples && for d in */; do (cd \"$d\" && pnpm i && cd ..); done", "format": "prettier . --write && eslint --fix", "lint": "prettier . --check && eslint", + "prepare": "pnpm setup && pnpm install -g serve && pnpm playwright install", "report:clean": "rm -rf playwright-report test-results tests-results", "report:open": "npx pnpm exec playwright show-report", "test": "playwright test --headed", diff --git a/examples/wc-wallet-react/config-overrides.js b/examples/wc-wallet-react/config-overrides.js index 5169b49..87ba47d 100644 --- a/examples/wc-wallet-react/config-overrides.js +++ b/examples/wc-wallet-react/config-overrides.js @@ -6,7 +6,8 @@ module.exports = function override(config) { fallback: { "crypto": require.resolve("crypto-browserify"), "querystring": require.resolve("querystring-es3"), - "stream": require.resolve("stream-browserify") + "stream": require.resolve("stream-browserify"), + "events": require.resolve("events") } } })