Skip to content

Commit

Permalink
ci: trigger newly typed e2e tests (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan authored Jan 8, 2024
1 parent 11a437c commit 0c04e7e
Show file tree
Hide file tree
Showing 10 changed files with 233 additions and 145 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
workflow_file_name: frontend:erc20-messaging.yml
ref: main
wait_interval: 60
client_payload: '{ "dapp-frontend-erc20-messaging-ref": "${{ github.head_ref }}" }'
client_payload: '{ "dapp-frontend-erc20-messaging-ref": "${{ github.head_ref }}", "e2e-test-type": "full" }'
2 changes: 1 addition & 1 deletion docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
entrypoint: []
working_dir: /app
command: >
bash -c 'echo -n "======> local noVNC URL: http://localhost:8080/vnc.html?autoconnect=true " && echo -n "======> remote noVNC URL: " && npm run test:e2e'
bash -c 'echo -n "======> local noVNC URL: http://localhost:8080/vnc.html?autoconnect=true " && echo -n "======> remote noVNC URL: " && npm run test:e2e:${E2E_TEST_TYPE}'
depends_on:
- display
- video
Expand Down
264 changes: 131 additions & 133 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
"frontend:start": "npm run start --workspace=frontend",
"frontend:test": "npm run test --workspace=frontend",
"frontend:test:coverage": "npm run test:coverage --workspace=frontend",
"frontend:test:e2e": "npm run test:e2e --workspace=frontend",
"test:e2e": "start-server-and-test 'npm run backend:start' http-get://localhost:3001 'npm run frontend:test:e2e'"
"frontend:test:e2e:full": "npm run test:e2e:full --workspace=frontend",
"frontend:test:e2e:light": "npm run test:e2e:light --workspace=frontend",
"test:e2e:full": "start-server-and-test 'npm run backend:start' http-get://localhost:3001 'npm run frontend:test:e2e:full'",
"test:e2e:light": "start-server-and-test 'npm run backend:start' http-get://localhost:3001 'npm run frontend:test:e2e:light'"
},
"workspaces": [
"packages/*"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ERROR, INFO } from '../../src/constants/wordings'
import { ERROR, INFO } from '../../../src/constants/wordings'

describe('Multistep form step-0 without MetaMask connect', () => {
beforeEach(() => {
Expand Down
Loading

0 comments on commit 0c04e7e

Please sign in to comment.