-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CU-86a0vq1ak - Fully implement WcSdk e2e tests (finish the connection…
… and use every command expecing the responses)
- Loading branch information
Leonardo de Jesus Diz Conde
committed
Oct 9, 2023
1 parent
6904766
commit c419e5c
Showing
39 changed files
with
1,530 additions
and
28,427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.DS_Store | ||
node_modules | ||
playwright.config.ts | ||
|
||
# Package manager files | ||
pnpm-lock.yaml | ||
yarn.lock | ||
package-lock.json | ||
|
||
# Ignore files for NPM lock file | ||
package-lock.json | ||
|
||
test-results/ | ||
tests-results/ | ||
playwright-report/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
}, | ||
root: true, | ||
rules: { | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.DS_Store | ||
node_modules | ||
playwright.config.ts | ||
|
||
# Package manager files | ||
pnpm-lock.yaml | ||
yarn.lock | ||
package-lock.json | ||
|
||
test-results/ | ||
tests-results/ | ||
playwright-report/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"semi": false, | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"tabWidth": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "e2e", | ||
"version": "1.0.0", | ||
"description": "wallet-connect-sdk e2e(end to end) tester", | ||
"private": true, | ||
"scripts": { | ||
"ex:build:unix": "cd ../examples && for d in */; do (cd \"$d\" && pnpm build && cd ..); done", | ||
"ex:build:windows": "cd ../examples && for /d %i in (*) do (cd %i && pnpm build && cd ..)", | ||
"ex:clean:unix": "rush purge && cd ../examples && for d in */; do (cd \"$d\" && rm -rf node_modules pnpm-lock.yaml && cd ..); done", | ||
"ex:clean:windows": "rush purge && cd ../examples && for /d %i in (*) do (cd %i && rm -rf node_modules pnpm-lock.yaml && cd ..)", | ||
"ex:install:unix": "cd ../examples && for d in */; do (cd \"$d\" && pnpm install && cd ..); done", | ||
"ex:install:windows": "cd ../examples && for /d %i in (*) do (cd %i && pnpm install && cd ..)", | ||
"format": "prettier . --write && eslint --fix", | ||
"lint": "prettier . --check && eslint", | ||
"prepare": "npm install serve -g && pnpm exec playwright install", | ||
"report:clean": "rm -rf playwright-report test-results tests-results", | ||
"report:open": "npx pnpm playwright show-report", | ||
"test": "playwright test --headed", | ||
"test:headless": "playwright test" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.38.1", | ||
"@types/node": "^20.8.2", | ||
"@typescript-eslint/eslint-plugin": "^6.7.4", | ||
"@typescript-eslint/parser": "^6.7.4", | ||
"eslint": "^8.50.0", | ||
"playwright": "^1.38.1", | ||
"prettier": "^3.0.3", | ||
"typescript": "^5.2.2" | ||
}, | ||
"dependencies": { | ||
"concurrently": "^8.2.1", | ||
"cross-env": "^7.0.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import type { PlaywrightTestConfig } from '@playwright/test' | ||
import { JSON_REPORT_PATH, TESTS_DIR } from './src/constants/PathsDefinitions'; | ||
import { RUN_CONCURRENTLY_COMMAND } from './src/constants/DevConstants'; | ||
|
||
const config: PlaywrightTestConfig = { | ||
fullyParallel: true, | ||
testMatch: '**/*.spec.ts', | ||
webServer: { | ||
command: RUN_CONCURRENTLY_COMMAND, | ||
port: 3000, // It needs a port to run the command above | ||
}, | ||
reporter: [ | ||
['list', { printSteps: true}], | ||
['html', { open: 'never'}], | ||
['json', { outputFile: JSON_REPORT_PATH}] | ||
], | ||
testDir: TESTS_DIR, | ||
retries: 3, | ||
use: { | ||
permissions: ["clipboard-read"], | ||
screenshot: 'on', | ||
video: 'on' | ||
}, | ||
timeout: 50000, | ||
} | ||
|
||
export default config |
Oops, something went wrong.