Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ rejects any **known-route** helper round-trip over 100ms. A miss is a red
Every path this process answers itself also needs **frontend E2E** coverage:
a real UI flow that hits that function, listed in `offered-routes.json`.
Those tests usually live in the consumer repository (for example
`DFXswiss/services` `e2e-stack/specs/buy.spec.ts`). This repository's CI
`DFXswiss/app` `e2e-stack/specs/buy.spec.ts`). This repository's CI
enforces the catalog, not the foreign suite. A mocked API intercept that
never reaches this process is not E2E of this layer. Reviewers must not
merge a change to an offered function until that E2E exists (any branch of
Expand Down
18 changes: 9 additions & 9 deletions offered-routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"match": "exact",
"usedIn": [
{
"repo": "DFXswiss/services",
"repo": "DFXswiss/app",
"path": "e2e-stack/compose.yml",
"note": "e2e-stack compose healthcheck is GET /version."
}
Expand Down Expand Up @@ -90,19 +90,19 @@
"note": "GET AssetUrl.get (asset). This prefix and its nested paths are served from the background GET cache; a miss is 503 not served, never forwarded."
},
{
"repo": "DFXswiss/services",
"repo": "DFXswiss/app",
"path": "src/screens/buy.screen.tsx",
"note": "Widget buy screen loads assets through @dfx.swiss/react."
}
],
"e2e": [
{
"repo": "DFXswiss/services",
"repo": "DFXswiss/app",
"path": "e2e-stack/specs/buy.spec.ts",
"note": "Widget buy flow: frontend Playwright asserts against live GET /v1/asset."
},
{
"repo": "DFXswiss/services",
"repo": "DFXswiss/app",
"path": "e2e-stack/specs/smoke.spec.ts",
"note": "Smoke fetch of GET /v1/asset from the running stack."
}
Expand All @@ -126,7 +126,7 @@
],
"e2e": [
{
"repo": "DFXswiss/services",
"repo": "DFXswiss/app",
"path": "e2e-stack/specs/buy.spec.ts",
"note": "Widget buy flow: frontend Playwright checks GET /v1/fiat."
}
Expand All @@ -150,7 +150,7 @@
],
"e2e": [
{
"repo": "DFXswiss/services",
"repo": "DFXswiss/app",
"path": "e2e-stack/specs/kyc.spec.ts",
"note": "KYC personal-data step: frontend Playwright fills the country search dropdown (Switzerland)."
}
Expand All @@ -174,7 +174,7 @@
],
"e2e": [
{
"repo": "DFXswiss/services",
"repo": "DFXswiss/app",
"path": "e2e-stack/specs/buy.spec.ts",
"note": "Widget buy flow: frontend Playwright loads GET /v1/language."
}
Expand All @@ -187,7 +187,7 @@
"usedIn": [
{
"unidentified": true,
"note": "Prefix on the swagger allowlist. The root is served from the background GET cache. Nested GET /v1/statistic/status is answered from that cached list-root status object (not a separate backend fetch). A miss is 503 not served, never forwarded. No named call site in DFXswiss/packages or DFXswiss/services."
"note": "Prefix on the swagger allowlist. The root is served from the background GET cache. Nested GET /v1/statistic/status is answered from that cached list-root status object (not a separate backend fetch). A miss is 503 not served, never forwarded. No named call site in DFXswiss/packages or DFXswiss/app."
}
],
"e2e": [
Expand All @@ -204,7 +204,7 @@
"usedIn": [
{
"unidentified": true,
"note": "Prefix on the swagger allowlist. The root and nested paths are served from the background GET cache; a miss is 503 not served, never forwarded. No named call site in DFXswiss/packages or DFXswiss/services."
"note": "Prefix on the swagger allowlist. The root and nested paths are served from the background GET cache; a miss is 503 not served, never forwarded. No named call site in DFXswiss/packages or DFXswiss/app."
}
],
"e2e": [
Expand Down
2 changes: 1 addition & 1 deletion test/offered-routes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ process.env.BACKEND_URL = process.env.BACKEND_URL || 'http://127.0.0.1:9';
const { CACHE_PREFIXES, EXACT_GET_PATHS, isServedPath } = require('../server.js');

const PUBLIC_REPOS = new Set([
'DFXswiss/services',
'DFXswiss/app',
'DFXswiss/packages',
'DFXswiss/dfx-wallet',
'RealUnitCH/app',
Expand Down
Loading