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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ jobs:

- name: Unit tests
run: npm test -- --ci

- name: Build and run integration
run: ./scripts/integration-headless.sh
14 changes: 14 additions & 0 deletions .testcaferc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"selectorTimeout": 300000,
"assertionTimeout": 300000,
"pageLoadTimeout": 30000,
"speed": 0.1,
"browsers": ["chrome:headless --disable-web-security --no-sandbox --disable-dev-shm-usage"],
"concurrency": 1,
"src": ["src/**/*.spec.js"],
"compilerOptions": {
"typescript": {
"configPath": "./tsconfig.json"
}
}
}
2 changes: 0 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ const nextConfig = {
exportPathMap: function exportMap() {
return {
"/": { page: "/" },
"/collaborate": { page: "/collaborate" },
"/privacy": { page: "/privacy" },
"/terms": { page: "/terms" },
"/collaborators-terms": { page: "/collaborators-terms" },
"/viewer": { page: "/viewer" },
"/faq": { page: "/faq" },
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"serve-static": "http-server out -s -p 3000",
"integration": "testcafe chrome src/**/*.spec.js --selector-timeout 10000 --ts-config-path ./tsconfig.json",
"integration:single": "testcafe chrome -L --app \"npm run serve-static\"",
"integration:headless": "testcafe -c 1 'chrome --headless=new --disable-web-security' --selector-timeout 300000 src/**/*.spec.js",
"integration:headless": "testcafe",
"integration:watch": "nodemon --exec \"npm run integration\" --watch src",
"type-check": "npx tsc --noEmit"
},
Expand Down
32 changes: 0 additions & 32 deletions pages/collaborators-terms.tsx

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

93 changes: 0 additions & 93 deletions public/static/demo/goerli.opencert

This file was deleted.

90 changes: 0 additions & 90 deletions public/static/demo/homestead.opencert

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions public/static/registry.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"issuers": {
"0x007d40224f6562461633ccfbaffd359ebb2fc9ba": {
"name": "Government Technology Agency of Singapore (GovTech)",
"name": "ROPSTEN: OpenCerts",
"displayCard": true,
"website": "https://www.tech.gov.sg",
"email": "[email protected]",
Expand Down Expand Up @@ -64,7 +64,7 @@
"phone": "+65 6592 1136",
"logo": "/static/images/SIT_logo.png",
"id": "sit-registry"
},
},
"0x78CE67fcb40D9D9552A313670A2e0eef11043995": {
"name": "SkillsFuture Singapore",
"displayCard": true,
Expand Down Expand Up @@ -356,11 +356,11 @@
"displayCard": false
},
"0xdcA6Eea7024151c270b50FcA9E67161119B06BAD": {
"name": "ROPSTEN: Government Technology Agency of Singapore (GovTech)",
"name": "ROPSTEN: OpenCerts",
"displayCard": false
},
"0x532C9Ff853CA54370D7492cD84040F9f8099f11B": {
"name": "ROPSTEN: Government Technology Agency of Singapore (GovTech)",
"name": "ROPSTEN: OpenCerts",
"displayCard": false
},
"0x5AA6bF8F748cD2D8f1949eD328B2bEa61CE2B6d7": {
Expand Down Expand Up @@ -400,27 +400,27 @@
"displayCard": false
},
"0x7Ee2B9a0043Bda975398477695ba5c2361acC50C": {
"name": "RINKEBY: Government Technology Agency of Singapore (GovTech)",
"name": "RINKEBY: OpenCerts",
"displayCard": false
},
"0xb3db78c0cc3622e078622C8395095a7B95415Acf": {
"name": "GOERLI: Government Technology Agency of Singapore (GovTech)",
"name": "GOERLI: OpenCerts",
"displayCard": false
},
"0x49b2969bF0E4aa822023a9eA2293b24E4518C1DD": {
"name": "GOERLI: Government Technology Agency of Singapore (GovTech)",
"name": "GOERLI: OpenCerts",
"displayCard": false
},
"0x80732bF5CA47A85e599f3ac9572F602c249C8A28": {
"name": "AMOY: Government Technology Agency of Singapore (GovTech)",
"name": "AMOY: OpenCerts",
"displayCard": false
},
"0x71D28767662cB233F887aD2Bb65d048d760bA694": {
"name": "SEPOLIA: Government Technology Agency of Singapore (GovTech)",
"name": "SEPOLIA: OpenCerts",
"displayCard": false
},
"0x80ca96D2Aab5E1E23876a4D8140Ee1292327a4cd": {
"name": "SEPOLIA: Government Technology Agency of Singapore (GovTech)",
"name": "SEPOLIA: OpenCerts",
"displayCard": false
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Analytics/analytics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe("analytics*", () => {
document_store: `"0x007d40224f6562461633ccfbaffd359ebb2fc9ba"`,
issued_on: "a date",
registry_id: "govtech-registry",
issuer_name: "Government Technology Agency of Singapore (GovTech)",
issuer_name: "ROPSTEN: OpenCerts",
nonInteraction: true,
value: undefined,
});
Expand Down Expand Up @@ -196,7 +196,7 @@ describe("analytics*", () => {
document_store: `"0x007d40224f6562461633ccfbaffd359ebb2fc9ba"`,
issued_on: "a date",
registry_id: "govtech-registry",
issuer_name: "Government Technology Agency of Singapore (GovTech)",
issuer_name: "ROPSTEN: OpenCerts",
nonInteraction: true,
value: undefined,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ describe("certificate verify block getV2IdentityVerificationText", () => {
{
status: "VALID",
value: "0xdcA6Eea7024151c270b50FcA9E67161119B06BAD",
name: "ROPSTEN: Government Technology Agency of Singapore (GovTech)",
name: "ROPSTEN: OpenCerts",
displayCard: false,
},
],
Expand All @@ -291,7 +291,7 @@ describe("certificate verify block getV2IdentityVerificationText", () => {
.toMatchInlineSnapshot(`
<ol>
<li>
ROPSTEN: GOVERNMENT TECHNOLOGY AGENCY OF SINGAPORE (GOVTECH)
ROPSTEN: OPENCERTS
</li>
</ol>
`);
Expand Down
175 changes: 0 additions & 175 deletions src/components/Collaborate/CollaboratorsTerms.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions src/components/Layout/FooterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ export const FooterBar: React.FunctionComponent = () => (
<footer className="flex-shrink-0 bg-navy text-white py-2">
<div className="container pt-8 pb-12">
<div className="flex flex-wrap justify-center">
<div className="w-full lg:w-40 mb-8 lg:mb-0">
<p className="font-poppins font-bold mb-2">Partners</p>
<ul className="text-sm">
<li>
<Link legacyBehavior href="/collaborate">
<a>Collaborate</a>
</Link>
</li>
</ul>
</div>
<div className="w-full lg:w-40 mb-8 lg:mb-0">
<p className="font-poppins font-bold mb-2">Support</p>
<ul className="text-sm">
Expand All @@ -35,11 +25,6 @@ export const FooterBar: React.FunctionComponent = () => (
Documentation
</a>
</li>
<li>
<a href="https://docs.opencerts.io/blog/" target="_blank" rel="noopener noreferrer">
Blog
</a>
</li>
</ul>
</div>
<div className="w-full lg:w-40">
Expand Down
10 changes: 5 additions & 5 deletions src/components/Layout/NavigationBar/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { useRouter } from "next/router";
import React from "react";

const navItems: { id: string; label: string; path: string }[] = [
{
id: "collaborate",
label: "Collaborate",
path: "/collaborate",
},
// {
// id: "collaborate",
// label: "Collaborate",
// path: "/collaborate",
// },
{
id: "faq",
label: "FAQ",
Expand Down
Loading