Skip to content

Commit

Permalink
fix: add missing matic and amoy static file, and resolve test cases e…
Browse files Browse the repository at this point in the history
…rror (invalid file path) (#938)

* fix: add missing matic and amoy static file

* fix: resolve error with invalid path.

* fix: ci error with docker-compose

---------

Co-authored-by: Haninn <[email protected]>
  • Loading branch information
nghaninn and Haninn authored Aug 15, 2024
1 parent 52b5ff1 commit 8469fc5
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/synpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Run e2e tests
run: docker-compose up --build --exit-code-from synpress
run: docker compose up --build --exit-code-from synpress
63 changes: 63 additions & 0 deletions public/static/demo/amoy.tt

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions public/static/demo/matic.tt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/test/load-action-certificate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test("Load document from action should work when url is valid", async (t) => {
const action = {
type: "DOCUMENT",
payload: {
uri: `https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-stability.json`,
uri: `https://gallery.openattestation.com/static/documents/tradetrust/v2/ebl-stability.json`,
permittedActions: ["VIEW"],
redirect: "https://tradetrust.io",
chainId: 101010,
Expand Down Expand Up @@ -46,7 +46,7 @@ test("Load document from action should fail when chainId not exists", async (t)
const action = {
type: "DOCUMENT",
payload: {
uri: `https://raw.githubusercontent.com/TradeTrust/tradetrust-website/test/tt-105-update-fixtures-amoy/src/test/fixture/amoy/ebl-amoy-v2.json`,
uri: `https://raw.githubusercontent.com/TradeTrust/tradetrust-website/d24442baf8033d553824965ad8611f1558fe102f/src/test/fixture/amoy/ebl-amoy-v2.json`,
redirect: "https://dev.tradetrust.io",
},
};
Expand Down

0 comments on commit 8469fc5

Please sign in to comment.