Skip to content

Commit

Permalink
Merge pull request #1077 from IntersectMBO/extended/tests
Browse files Browse the repository at this point in the history
test: Delegated ADA display to DRep
  • Loading branch information
NabinKawan authored Jun 6, 2024
2 parents d475828 + f27ce68 commit 3dd4f4d
Show file tree
Hide file tree
Showing 21 changed files with 1,055 additions and 168 deletions.
372 changes: 372 additions & 0 deletions tests/govtool-frontend/playwright/lib/_mock/infoTypeProposal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,372 @@
{
"page": 0,
"pageSize": 7,
"total": 20,
"elements": [
{
"id": "81",
"txHash": "7a11d960c26700c8e480ab14bacb739180bb59c7be65c080e73c1597cec3ccdd",
"index": 0,
"type": "InfoAction",
"details": {},
"expiryDate": "2024-06-06T06:59:21.477528Z",
"expiryEpochNo": 357,
"createdDate": "2024-05-31T14:22:33Z",
"createdEpochNo": 351,
"url": "https://bafkreiezyn2v5v5lhnvl6bckelvo7j5naowysq7jiiurqloqzasrjpio7q.ipfs.w3s.link",
"metadataHash": "6805152f22c80a395a19a2dd8e5f4e9b84287e6a621c184ccccb43c53c61f293",
"title": "hi",
"about": "hi",
"motivation": "hi",
"rationale": "hi",
"metadata": {
"@context": {
"@language": "en-us",
"CIP100": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#",
"CIP108": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0108/README.md#",
"authors": {
"@container": "@set",
"@context": {
"name": "http://xmlns.com/foaf/0.1/name",
"witness": {
"@context": {
"publicKey": "CIP100:publicKey",
"signature": "CIP100:signature",
"witnessAlgorithm": "CIP100:witnessAlgorithm"
},
"@id": "CIP100:witness"
}
},
"@id": "CIP100:authors"
},
"body": {
"@context": {
"abstract": "CIP108:abstract",
"motivation": "CIP108:motivation",
"rationale": "CIP108:rationale",
"references": {
"@container": "@set",
"@context": {
"GovernanceMetadata": "CIP100:GovernanceMetadataReference",
"Other": "CIP100:OtherReference",
"label": "CIP100:reference-label",
"referenceHash": {
"@context": {
"hashAlgorithm": "CIP100:hashAlgorithm",
"hashDigest": "CIP108:hashDigest"
},
"@id": "CIP108:referenceHash"
},
"uri": "CIP100:reference-uri"
},
"@id": "CIP108:references"
},
"title": "CIP108:title"
},
"@id": "CIP108:body"
},
"hashAlgorithm": "CIP100:hashAlgorithm"
},
"authors": [],
"body": {
"abstract": {
"@value": "hi"
},
"motivation": {
"@value": "hi"
},
"rationale": {
"@value": "hi"
},
"references": [],
"title": {
"@value": "hi"
}
},
"hashAlgorithm": {
"@value": "blake2b-256"
}
},
"references": [],
"yesVotes": 0,
"noVotes": 50523999411,
"abstainVotes": 3434294559599,
"metadataStatus": {
"status": null,
"valid": false,
"raw": {
"valid": true
}
}
},
{
"id": "73",
"txHash": "e79395f1b5e23e657486c6b3ce2fc528ffc090eb21ef6c6ab740c80a9226e6c8",
"index": 0,
"type": "InfoAction",
"details": {},
"expiryDate": "2024-06-06T06:59:21.477528Z",
"expiryEpochNo": 357,
"createdDate": "2024-05-31T05:21:20Z",
"createdEpochNo": 351,
"url": "https://bit.ly/3zCH2HL",
"metadataHash": "1111111111111111111111111111111111111111111111111111111111111111",
"title": null,
"about": null,
"motivation": null,
"rationale": null,
"metadata": null,
"references": null,
"yesVotes": 0,
"noVotes": 50523999411,
"abstainVotes": 3434294559599,
"metadataStatus": {
"status": null,
"valid": false,
"raw": {
"valid": true
}
}
},
{
"id": "84",
"txHash": "3c9d9224bf22014605a7f680708d2f44b549ca3416cb83cefc2e16e4696d8643",
"index": 0,
"type": "InfoAction",
"details": {},
"expiryDate": "2024-06-09T06:50:31.910112Z",
"expiryEpochNo": 360,
"createdDate": "2024-06-03T22:39:50Z",
"createdEpochNo": 354,
"url": "https://raw.githubusercontent.com/mpawel79/testrepo/master/Info.jsonld",
"metadataHash": "eebfff0e2213ff0c5331e6d9d99d47a5a825dce7053671b6ed4daae4b4e0df5e",
"title": null,
"about": null,
"motivation": null,
"rationale": null,
"metadata": null,
"references": null,
"yesVotes": 0,
"noVotes": 50523999411,
"abstainVotes": 3434294559599,
"metadataStatus": {
"status": null,
"valid": false,
"raw": {
"metadata": {
"abstract": "test",
"motivation": "test",
"rationale": "test",
"references": ["https://test.com"],
"title": "test"
},
"valid": true
}
}
},
{
"id": "82",
"txHash": "8c92cfc2bd4e43b4c323f0ae1899b17787143eeb2b4f410b695fabfd9f5589fd",
"index": 0,
"type": "InfoAction",
"details": {},
"expiryDate": "2024-06-06T06:59:21.477528Z",
"expiryEpochNo": 357,
"createdDate": "2024-05-31T14:24:23Z",
"createdEpochNo": 351,
"url": "https://raw.githubusercontent.com/mpawel79/testrepo/master/Info.jsonld",
"metadataHash": "eebfff0e2213ff0c5331e6d9d99d47a5a825dce7053671b6ed4daae4b4e0df5e",
"title": null,
"about": null,
"motivation": null,
"rationale": null,
"metadata": null,
"references": null,
"yesVotes": 0,
"noVotes": 50523999411,
"abstainVotes": 3434294559599,
"metadataStatus": {
"status": null,
"valid": false,
"raw": {
"metadata": {
"abstract": "test",
"motivation": "test",
"rationale": "test",
"references": ["https://test.com"],
"title": "test"
},
"valid": true
}
}
},
{
"id": "86",
"txHash": "79f95f77a980458a5532e70f1c74556557a2d8a4bd6172b316f19e9c4ec9b04f",
"index": 0,
"type": "InfoAction",
"details": {},
"expiryDate": "2024-06-10T06:47:35.38764Z",
"expiryEpochNo": 361,
"createdDate": "2024-06-04T10:25:18Z",
"createdEpochNo": 355,
"url": "https://metadata.cardanoapi.io/data/Info",
"metadataHash": "44c9719997b1bb5d15ef0e3e3f235d2b088dcbed531780fee9aa4ab79d6767e9",
"title": " ",
"about": " ",
"motivation": " ",
"rationale": " ",
"metadata": {
"@context": {
"@language": "en-us",
"CIP100": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#",
"CIP108": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0108/README.md#",
"authors": {
"@container": "@set",
"@context": {
"name": "http://xmlns.com/foaf/0.1/name",
"witness": {
"@context": {
"publicKey": "CIP100:publicKey",
"signature": "CIP100:signature",
"witnessAlgorithm": "CIP100:witnessAlgorithm"
},
"@id": "CIP100:witness"
}
},
"@id": "CIP100:authors"
},
"body": {
"@context": {
"abstract": "CIP108:abstract",
"motivation": "CIP108:motivation",
"rationale": "CIP108:rationale",
"references": {
"@container": "@set",
"@context": {
"GovernanceMetadata": "CIP100:GovernanceMetadataReference",
"Other": "CIP100:OtherReference",
"label": "CIP100:reference-label",
"referenceHash": {
"@context": {
"hashAlgorithm": "CIP100:hashAlgorithm",
"hashDigest": "CIP108:hashDigest"
},
"@id": "CIP108:referenceHash"
},
"uri": "CIP100:reference-uri"
},
"@id": "CIP108:references"
},
"title": "CIP108:title"
},
"@id": "CIP108:body"
},
"hashAlgorithm": "CIP100:hashAlgorithm"
},
"authors": [],
"body": {
"abstract": {
"@value": " "
},
"motivation": {
"@value": " "
},
"rationale": {
"@value": " "
},
"references": [],
"title": {
"@value": " "
}
},
"hashAlgorithm": {
"@value": "blake2b-256"
}
},
"references": [],
"yesVotes": 0,
"noVotes": 50523999411,
"abstainVotes": 3434294559599,
"metadataStatus": {
"status": null,
"valid": false,
"raw": {
"metadata": {
"abstract": " ",
"motivation": " ",
"rationale": " ",
"references": [],
"title": " "
},
"valid": true
}
}
},
{
"id": "83",
"txHash": "9d28e20a0b406d81b2b50afc87c4cec0a46cd0acb6d820a8e79ff61673a3f4ff",
"index": 0,
"type": "InfoAction",
"details": {},
"expiryDate": "2024-06-09T06:50:31.910112Z",
"expiryEpochNo": 360,
"createdDate": "2024-06-03T14:03:59Z",
"createdEpochNo": 354,
"url": "https://raw.githubusercontent.com/mpawel79/testrepo/master/InfoJune03.jsonld",
"metadataHash": "eebfff0e2213ff0c5331e6d9d99d47a5a825dce7053671b6ed4daae4b4e0df5e",
"title": null,
"about": null,
"motivation": null,
"rationale": null,
"metadata": null,
"references": null,
"yesVotes": 0,
"noVotes": 50523999411,
"abstainVotes": 3434294559599,
"metadataStatus": {
"status": null,
"valid": false,
"raw": {
"metadata": {
"abstract": "test",
"motivation": "test",
"rationale": "test",
"references": ["https://test.com"],
"title": "test"
},
"valid": true
}
}
},
{
"id": "77",
"txHash": "b61762d4c4f923a08a9c180f5783760bb98e36da6c314f97632ed64bda9545c2",
"index": 0,
"type": "InfoAction",
"details": {},
"expiryDate": "2024-06-06T06:59:21.477528Z",
"expiryEpochNo": 357,
"createdDate": "2024-05-31T06:40:11Z",
"createdEpochNo": 351,
"url": "https://bit.ly/3zCH2HL",
"metadataHash": "1111111111111111111111111111111111111111111111111111111111111111",
"title": null,
"about": null,
"motivation": null,
"rationale": null,
"metadata": null,
"references": null,
"yesVotes": 0,
"noVotes": 50523999411,
"abstainVotes": 3434294559599,
"metadataStatus": {
"status": null,
"valid": false,
"raw": {
"valid": true
}
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const adaHolder02Wallet = staticWallets[4];
export const adaHolder03Wallet = staticWallets[6];
export const adaHolder04Wallet = staticWallets[7];
export const adaHolder05Wallet = staticWallets[8];
export const adaHolder06Wallet = staticWallets[9];

// Does not takes part in transaction
export const user01Wallet: StaticWallet = staticWallets[5];
Expand Down
Loading

0 comments on commit 3dd4f4d

Please sign in to comment.