Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
3a12b38
fix: merge conflicts (#49)
RishabhS7 Apr 28, 2026
bfde7d2
fix: stabilize dropdown and news text styling (#50)
manishdex25 Apr 28, 2026
688f8c2
fix: metamask transaction message (#51)
RishabhS7 Apr 29, 2026
98a145d
fix: merge (#54)
RishabhS7 Apr 29, 2026
26bae12
fix: sync main back into develop
rongquan1 Apr 29, 2026
8aee94d
chore: bump @trustvc/trustvc to ^2.12.4
rongquan1 May 12, 2026
84660da
Tt 989/partner integration (#56)
manishdex25 May 12, 2026
38bd9c9
Tt 989/partner card layout (#57)
manishdex25 May 13, 2026
4272829
Tt 989/fix carausel speed (#58)
manishdex25 May 13, 2026
60b3509
Tt 989/fix carausel ios (#59)
manishdex25 May 14, 2026
a5085e0
Tt 1334/about us page (#60)
manishdex25 May 18, 2026
1b50451
Hotfix/button color isue (#61)
manishdex25 May 21, 2026
0d3bb85
chore: sync to main (#55) (#63)
manishdex25 May 21, 2026
605a0e9
chore: sync to main (#55) (#66)
manishdex25 May 21, 2026
5284aa2
chore: sync to main (#55) (#67)
manishdex25 May 21, 2026
ca2507c
Merge branch 'main' into develop
manishdex25 May 21, 2026
291913b
feat: qr document loader (#64)
RishabhS7 May 22, 2026
189e5de
chore: e2e tests (#69)
RishabhS7 Jun 5, 2026
d7e7214
feat: matic pol (#70)
manishdex25 Jun 16, 2026
697c97c
chore: add OpenAttestation v2 + W3C VC verification e2e suites (#71)
rongquan1 Jun 17, 2026
e85d8b5
Feat/sync master develop (#72)
manishdex25 Jun 18, 2026
71178b8
Feature/sync develop main (#73)
manishdex25 Jun 18, 2026
08e8920
Merge branch 'main' into develop
manishdex25 Jun 18, 2026
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
78 changes: 78 additions & 0 deletions .github/workflows/e2e-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: E2E Verification Tests

on:
pull_request:
branches: [main, develop]
workflow_dispatch:

# Read-only document verification suite (OA + W3C VC). No MetaMask, runs headless.
jobs:
e2e-verify:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install chromium --with-deps

# ── Local chain + contracts ──────────────────────────────────────────
- name: Start Hardhat node
run: npx hardhat node &
env:
NODE_OPTIONS: --max-old-space-size=4096

- name: Wait for Hardhat node
run: npx wait-on http://127.0.0.1:8545 --timeout 180000

# Token registry (token-registry fixtures) + document store (doc-store fixtures)
- name: Deploy contracts and mint tokens
run: node e2e/setup-contracts.cjs

- name: Deploy document store
run: node e2e/setup-document-store.cjs

# ── Dev server ───────────────────────────────────────────────────────
- name: Start dev server
run: npm run dev &
env:
VITE_APP_NETWORK: local
VITE_NETWORK_TYPE: testnet
VITE_RPC_URL_1337: http://127.0.0.1:8545

- name: Wait for dev server
run: npx wait-on http://localhost:5173 --timeout 180000

# ── Verification tests (headless, no MetaMask) ───────────────────────
- name: Run verification E2E tests
run: npm run e2e:verify
env:
CI: 'true'

- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report-verify
path: playwright-report-verify/
retention-days: 7

- name: Upload screenshots on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: verify-test-results
path: test-results/
retention-days: 7
if-no-files-found: ignore

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +11 to +78
124 changes: 124 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: E2E Tests

on:
pull_request:
branches: [main, develop]
workflow_dispatch: # allow manual trigger

jobs:
e2e:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install chromium --with-deps

# ── Hardhat node ─────────────────────────────────────────────────────
- name: Start Hardhat node
run: npx hardhat node &
env:
# Give the node a moment before we use it
NODE_OPTIONS: --max-old-space-size=4096

- name: Wait for Hardhat node
run: npx wait-on http://127.0.0.1:8545 --timeout 180000

- name: Deploy contracts and mint tokens
run: node e2e/setup-contracts.cjs

# ── Dev server ───────────────────────────────────────────────────────
- name: Start dev server
run: npm run dev &
env:
VITE_APP_NETWORK: local
VITE_NETWORK_TYPE: testnet
VITE_RPC_URL_1337: http://127.0.0.1:8545
VITE_RPC_URL_80002: https://rpc-amoy.polygon.technology/
VITE_RPC_URL_137: https://rpc.ankr.com/polygon

- name: Wait for dev server
run: npx wait-on http://localhost:5173 --timeout 180000

# ── MetaMask wallet cache ────────────────────────────────────────────
# Cache the wallet setup so it is not rebuilt on every run.
- name: Cache MetaMask wallet
id: metamask-cache
uses: actions/cache@v4
with:
path: .cache-synpress
key: metamask-wallet-${{ hashFiles('e2e/wallet-setup/**') }}

- name: Build MetaMask wallet cache
if: steps.metamask-cache.outputs.cache-hit != 'true'
timeout-minutes: 10
run: npm run e2e:setup-wallet -- --headless
env:
HEADLESS: 'true'

# ── E2E tests ────────────────────────────────────────────────────────
- name: Start Xvfb virtual display
run: |
Xvfb :99 -screen 0 1280x720x24 >/dev/null 2>&1 &
sleep 1
- name: Install ffmpeg
run: sudo apt-get install -y ffmpeg

- name: Start screen recording
run: |
ffmpeg -f x11grab -video_size 1280x720 -framerate 15 \
-i :99 -c:v libx264 -preset ultrafast -pix_fmt yuv420p \
/tmp/e2e-recording.mp4 &
echo $! > /tmp/ffmpeg.pid
- name: Run E2E tests
run: npm run e2e
env:
DISPLAY: ':99'
CI: 'true'

- name: Stop screen recording
if: always()
run: |
kill $(cat /tmp/ffmpeg.pid) 2>/dev/null || true
sleep 2
# ── Artifacts ────────────────────────────────────────────────────────
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7

- name: Upload screen recording
if: always()
uses: actions/upload-artifact@v4
with:
name: screen-recording
path: /tmp/e2e-recording.mp4
retention-days: 7
if-no-files-found: ignore

- name: Upload screenshots on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results/
retention-days: 7
if-no-files-found: ignore

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +10 to +124
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ trustvc-cms/.sanity
# Misc
*.pem
*.tsbuildinfo

# Playwright / Synpress
.cache-synpress
playwright-report
test-results
cache
8 changes: 8 additions & 0 deletions e2e/fixtures.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { testWithSynpress } from '@synthetixio/synpress'
import { MetaMask, metaMaskFixtures } from '@synthetixio/synpress/playwright'
import BasicSetup from './wallet-setup/basic.setup'

const test = testWithSynpress(metaMaskFixtures(BasicSetup))
const { expect } = test

export { test, expect, MetaMask, BasicSetup }
Loading
Loading