Handle validations #2641
Annotations
7 errors and 2 notices
|
tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L51
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:50:1 › Issue accreditation [Negative]
Error: ENOENT: no such file or directory, open './tests/e2e/payloads/accreditation/accredit.json'
49 |
50 | test(' Issue accreditation [Negative]', async ({ request }) => {
> 51 | const credentialData = JSON.parse(fs.readFileSync(`${PAYLOADS_PATH.ACCREDITATION}/accredit.json`, 'utf-8'));
| ^
52 | const issueResponse = await request.post(`/accreditation/issue`, {
53 | data: JSON.stringify(credentialData),
54 | headers: {
at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:51:39
|
tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L51
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:50:1 › Issue accreditation [Negative]
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: ENOENT: no such file or directory, open './tests/e2e/payloads/accreditation/accredit.json'
49 |
50 | test(' Issue accreditation [Negative]', async ({ request }) => {
> 51 | const credentialData = JSON.parse(fs.readFileSync(`${PAYLOADS_PATH.ACCREDITATION}/accredit.json`, 'utf-8'));
| ^
52 | const issueResponse = await request.post(`/accreditation/issue`, {
53 | data: JSON.stringify(credentialData),
54 | headers: {
at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:51:39
|
tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L51
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:50:1 › Issue accreditation [Negative]
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: ENOENT: no such file or directory, open './tests/e2e/payloads/accreditation/accredit.json'
49 |
50 | test(' Issue accreditation [Negative]', async ({ request }) => {
> 51 | const credentialData = JSON.parse(fs.readFileSync(`${PAYLOADS_PATH.ACCREDITATION}/accredit.json`, 'utf-8'));
| ^
52 | const issueResponse = await request.post(`/accreditation/issue`, {
53 | data: JSON.stringify(credentialData),
54 | headers: {
at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:51:39
|
tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L81
2) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:70:1 › Issue and verify a accredit accreditation
TypeError: Cannot read properties of undefined (reading 'proof')
79 | expect(issueResponse).toBeOK();
80 | expect(issueResponse.status()).toBe(StatusCodes.OK);
> 81 | expect(accreditation.proof.type).toBe('JwtProof2020');
| ^
82 | expect(accreditation.proof).toHaveProperty('jwt');
83 | expect(typeof accreditation.issuer === 'string' ? accreditation.issuer : accreditation.issuer.id).toBe(
84 | credentialData.issuerDid
at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:81:23
|
tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L81
2) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:70:1 › Issue and verify a accredit accreditation
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'proof')
79 | expect(issueResponse).toBeOK();
80 | expect(issueResponse.status()).toBe(StatusCodes.OK);
> 81 | expect(accreditation.proof.type).toBe('JwtProof2020');
| ^
82 | expect(accreditation.proof).toHaveProperty('jwt');
83 | expect(typeof accreditation.issuer === 'string' ? accreditation.issuer : accreditation.issuer.id).toBe(
84 | credentialData.issuerDid
at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:81:23
|
|
|
|
This job failed
Loading