Skip to content

Commit

Permalink
fix: test load action
Browse files Browse the repository at this point in the history
  • Loading branch information
simboonlong committed Jun 19, 2023
1 parent dc737ad commit 9cb38ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/load-action-certificate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ 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-goerli.json`,
uri: `https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-mumbai.json`,
permittedActions: ["VIEW"],
redirect: "https://dev.tradetrust.io",
chainId: 5,
chainId: 80001,
},
};
await t.navigateTo(`${location}/?q=${encodeURI(JSON.stringify(action))}`);

await validateIssuerTexts(["DEMO-TRADETRUST.OPENATTESTATION.COM"]);
await validateIssuerTexts(["EXAMPLE.TRADETRUST.IO"]);
validateIframeTexts(["BILL OF LADING FOR OCEAN TRANSPORT OR MULTIMODAL TRANSPORT"]);
});

Expand All @@ -28,7 +28,7 @@ test("Load document from action should fail when url is invalid", async (t) => {
payload: {
uri: `https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/123.tt`,
redirect: "https://dev.tradetrust.io",
chainId: 5,
chainId: 80001,
},
};

Expand All @@ -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/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-goerli.json`,
uri: `https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-mumbai.json`,
redirect: "https://dev.tradetrust.io",
},
};
Expand Down

0 comments on commit 9cb38ed

Please sign in to comment.