fix throw problem, change URL_IDHUB

This commit is contained in:
mildred 2024-03-08 12:44:18 +01:00
parent 01b775b469
commit eb4cf56178
7 changed files with 154 additions and 4 deletions

View File

@ -42,8 +42,9 @@ export const SCHEMA_TYPE_CC = 'CourseCredential' //Revisar este valor en la inte
//Messages //Messages
export const ALERT_FILE_IMPORTED_SUCCESSFULLY = "The file was imported successfully!" export const ALERT_FILE_IMPORTED_SUCCESSFULLY = "The file was imported successfully!"
export const ALERT_FILE_TO_IMPORT_IS_EMPTY = "The file you try to import is empty!"
export const ALERT_FILE_TO_IMPORT_IS_EMPTY = "The file you try to import is empty!"
export const ALERT_FILE_NOT_CORRESPOND_SCHEMA = "This File does not correspond to this scheme!"
export const ALERT_FILE_IS_BADLY_FORMATTED = "This file is badly formatted!" export const ALERT_FILE_IS_BADLY_FORMATTED = "This file is badly formatted!"
export const ALERT_FILE_TO_IMPORT_WITHOUT_REQUIRED_COLUMS = "line 2: 'email' is a required property" export const ALERT_FILE_TO_IMPORT_WITHOUT_REQUIRED_COLUMS = "line 2: 'email' is a required property"
export const ALERT_FILE_TO_IMPORT_WITH_ALIEN_COLUMS = "line 2: Additional properties are not allowed ('alien1', 'alien2' were unexpected)" export const ALERT_FILE_TO_IMPORT_WITH_ALIEN_COLUMS = "line 2: Additional properties are not allowed ('alien1', 'alien2' were unexpected)"

View File

@ -2,7 +2,7 @@
export const ADMIN_EMAIL = "idhub_admin@pangea.org" export const ADMIN_EMAIL = "idhub_admin@pangea.org"
export const ADMIN_K = "1234" export const ADMIN_K = "1234"
export const KO_ADMIN_K = "876" export const KO_ADMIN_K = "876"
export const URL_IDHUB = "https://idhub-autotest.demo.pangea.org" export const URL_IDHUB = "https://idhub1-autotest.demo.pangea.org"
//export const URL_IDHUB = "https://idhub-nightly.demo.pangea.org" //export const URL_IDHUB = "https://idhub-nightly.demo.pangea.org"
export const USER1_EMAIL = "user1@example.org" export const USER1_EMAIL = "user1@example.org"

View File

@ -0,0 +1,80 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://idhub.pangea.org/credentials/base/v1",
"https://idhub.pangea.org/credentials/financial-vulnerability/v1"
],
"id": "https://http://idhub-autotest.demo.pangea.org/credentials/1",
"type": [
"VerifiableCredential",
"VerifiableAttestation",
"FinancialVulnerabilityCredential"
],
"credentialSubject": {
"id": "did:web:idhub-autotest.demo.pangea.org:did-registry:z6Mkr4s4CSK3t52CXaw9inx2cxUhB8BNT7P5Dj3kK5ySz758",
"connectivityOptionList": "Fibra",
"identityNumber": "45678900V",
"assessmentDate": "2024-01-01",
"phoneNumber": "678567456",
"streetAddress": "C/ Tallers 1",
"lastName": "Mozart",
"email": "user1@example.org",
"identityDocType": "DNI",
"socialWorkerName": "Ana",
"socialWorkerSurname": "Fernández",
"amountCoveredByOtherAids": "0",
"firstName": "Wolfgang Amadeus",
"financialVulnerabilityScore": "4"
},
"issuer": {
"id": "did:web:idhub-autotest.demo.pangea.org:did-registry:z6MktKKrgWJne5ZQkj5uVyHkdrPfRZGC7HEiaR9LrfjPhEP8",
"name": "idhub-autotest.demo.pangea.org"
},
"issuanceDate": "2024-03-06T22:15:20Z",
"proof": {
"type": "Ed25519Signature2018",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:web:idhub-autotest.demo.pangea.org:did-registry:z6MktKKrgWJne5ZQkj5uVyHkdrPfRZGC7HEiaR9LrfjPhEP8#owner",
"created": "2024-03-06T22:15:20.778Z",
"jws": "eyJhbGciOiJFZERTQSIsImNyaXQiOlsiYjY0Il0sImI2NCI6ZmFsc2V9..HiLXLoMlwkhfHd5Ha20AP8Mgtgna_JaTpg-UZvobYEZcGJLrWEY-MntnCglHyQ6oXCNRlc-DCpG9JdsWf8boDg"
},
"credentialStatus": {
"id": "did:web:idhub-autotest.demo.pangea.org:did-registry:z6MktKKrgWJne5ZQkj5uVyHkdrPfRZGC7HEiaR9LrfjPhEP8",
"type": "RevocationBitmap2022",
"revocationBitmapIndex": "1"
},
"credentialSchema": {
"id": "https://idhub.pangea.org/vc_schemas/financial-vulnerability.json",
"type": "FullJsonSchemaValidator2021"
},
"validFrom": "2024-03-06T22:15:20Z",
"description": [
{
"lang": "en",
"value": "The Financial Vulnerability Credential is issued to individuals or families to prove their financial vulnerability based on various factors, with the objective of presenting it to a third party to receive benefits or services."
},
{
"lang": "ca_ES",
"value": "La Credencial de Vulnerabilitat Financera és emesa a persones o famílies per acreditar la seva vulnerabilitat financera sobre la base de diversos factors, amb l'objectiu que la presentin a una tercera part per rebre beneficis o serveis."
},
{
"lang": "es",
"value": "La Credencial de Vulnerabilidad Financiera es emitida a personas o familias para acreditar su vulnerabilidad financiera con base en diversos factores, con el objetivo de que la presenten a una tercera parte para recibir beneficios o servicios."
}
],
"issued": "2024-03-06T22:15:20Z",
"name": [
{
"lang": "en",
"value": "Financial Vulnerability Credential"
},
{
"lang": "ca_ES",
"value": "Credencial de Vulnerabilitat Financera"
},
{
"lang": "es",
"value": "Credencial de Vulnerabilidad Financiera"
}
]
}

View File

@ -0,0 +1,69 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://idhub.pangea.org/credentials/base/v1",
"https://idhub.pangea.org/credentials/financial-vulnerability/v1"
],
"id": "https://idhub.pangea.org/credentials/987654321",
"type": [
"VerifiableCredential",
"VerifiableAttestation",
"FinancialVulnerabilityCredential"
],
"issuer": {
"id": "did:example:5678",
"name": "Fundació Pare Manel"
},
"issuanceDate": "2023-12-06T19:23:24Z",
"issued": "2023-12-06T19:23:24Z",
"validFrom": "2023-12-06T19:23:24Z",
"validUntil": "2024-12-06T19:23:24Z",
"name": [
{
"value": "Financial Vulnerability Credential",
"lang": "en"
},
{
"value": "Credencial de Vulnerabilitat Financera",
"lang": "ca_ES"
},
{
"value": "Credencial de Vulnerabilidad Financiera",
"lang": "es"
}
],
"description": [
{
"value": "The Financial Vulnerability Credential is issued to individuals or families to prove their financial vulnerability based on various factors, with the objective of presenting it to a third party to receive benefits or services.",
"lang": "en"
},
{
"value": "La Credencial de Vulnerabilitat Financera és emesa a persones o famílies per acreditar la seva vulnerabilitat financera sobre la base de diversos factors, amb l'objectiu que la presentin a una tercera part per rebre beneficis o serveis.",
"lang": "ca_ES"
},
{
"value": "La Credencial de Vulnerabilidad Financiera es emitida a personas o familias para acreditar su vulnerabilidad financiera con base en diversos factores, con el objetivo de que la presenten a una tercera parte para recibir beneficios o servicios.",
"lang": "es"
}
],
"credentialSubject": {
"id": "did:example:1234",
"firstName": "Joan",
"lastName": "Pera",
"email": "joan.pera@pangea.org",
"identityDocType": "DNI",
"identityNumber": "12345678A",
"phoneNumber": "1234567890",
"streetAddress": "Tallers 19 2-1 Barcelona",
"socialWorkerName": "Mireia",
"socialWorkerSurname": "Pujol",
"financialVulnerabilityScore": "5",
"amountCoveredByOtherAids": "20",
"connectivityOptionList": "fibre, mobile",
"assessmentDate": "2023-12-06"
},
"credentialSchema": {
"id": "https://idhub.pangea.org/vc_schemas/financial-vulnerability.json",
"type": "FullJsonSchemaValidator2021"
}
}

View File

@ -37,7 +37,7 @@ export class LogInPage {
await this.page.goto(site); await this.page.goto(site);
} catch (error) { } catch (error) {
console.error('Failed to navigate to the forgot password page:', error); console.error('Failed to navigate to the forgot password page:', error);
throw new error; throw error;
} }
} }
@ -51,7 +51,7 @@ export class LogInPage {
return errorText === ERROR_INCORRECT_EMAIL_PASSWORD; return errorText === ERROR_INCORRECT_EMAIL_PASSWORD;
} catch (error) { } catch (error) {
console.error('Failed to check error message:', error); console.error('Failed to check error message:', error);
throw new error; throw error;
} }
} }
} }