From 22eeb10f84894c1272d149571923f176c6e564a3 Mon Sep 17 00:00:00 2001 From: Min Htet Oo Date: Mon, 6 May 2024 11:03:44 +0800 Subject: [PATCH] test: increase jest timeout by 10000 --- jest.config.js | 1 + src/test/load-action-certificate.spec.ts | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/jest.config.js b/jest.config.js index b239bf4e3..3fa50036e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -20,4 +20,5 @@ module.exports = { testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)test.[jt]s?(x)"], transformIgnorePatterns: ["node_modules/?!(@tradetrust-tt).*/"], testPathIgnorePatterns: ["/node_modules/", "/tests/"], + testTimeout: 10000, }; diff --git a/src/test/load-action-certificate.spec.ts b/src/test/load-action-certificate.spec.ts index 40bb7e6f8..dfea75c0f 100644 --- a/src/test/load-action-certificate.spec.ts +++ b/src/test/load-action-certificate.spec.ts @@ -12,8 +12,8 @@ test("Load document from action should work when url is valid", async (t) => { payload: { uri: `https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-stability.json`, permittedActions: ["VIEW"], - redirect: "https://dev.tradetrust.io", - chainId: 80002, + redirect: "https://tradetrust.io", + chainId: 101010, }, }; await t.navigateTo(`${location}/?q=${encodeURI(JSON.stringify(action))}`); @@ -27,8 +27,8 @@ test("Load document from action should fail when url is invalid", async (t) => { type: "DOCUMENT", payload: { uri: `https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-stability-invalid.json`, - redirect: "https://dev.tradetrust.io", - chainId: 80002, + redirect: "https://tradetrust.io", + chainId: 101010, }, }; @@ -38,7 +38,7 @@ test("Load document from action should fail when url is invalid", async (t) => { await validateTextContent(t, CertificateDropzone, [ "This document is not valid", "Unable to load certificate with the provided parameters", - "Unable to load the certificate from https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/123.tt", + "Unable to load the certificate from https://raw.githubusercontent.com/Open-Attestation/gallery/master/static/documents/tradetrust/v2/ebl-stability-invalid.json", ]); });