Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add JSON-LD expansion and validation e2e tests #220

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

huynguyen-hl
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR implements end-to-end tests for the JSON-LD expansion validation step in the UNTP playground. These tests ensure the feature functions correctly across all scenarios, including valid JSON-LD credential expansion and various invalid JSON-LD cases. Additionally, they verify that error messages are displayed correctly in the UI.

Related Tickets & Documents

https://github.com/gs-gs/fa-ag-trace/issues/955

Mobile & Desktop Screenshots/Recordings

Valid case:

image

Missing "credentialSubject/invalid" property in the context:

Screenshot 2025-02-21 at 10 45 05β€―AM

Unresolvable/invalid context URL:

Screenshot 2025-02-21 at 10 45 49β€―AM

Term redefinition/conflicting field:

image

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“– Mock App docs site
  • πŸ“œ README.md
  • πŸ“• storybook
  • πŸ™… no documentation needed

Copy link

Code Coverage Report

Lines Statements Branches Functions
Coverage: 83%
82.45% (3497/4241) 71.89% (862/1199) 76.7% (415/541)
Title Lines Statements Branches Functions
All packages Coverage: 83%
82.45% (3497/4241) 71.89% (862/1199) 76.7% (415/541)
Components Coverage: 84%
84.03% (516/614) 69.36% (120/173) 77.23% (95/123)
Mock app Coverage: 71%
71.89% (371/516) 53.23% (74/139) 68.14% (77/113)
Services Coverage: 81%
79.29% (1038/1309) 64.88% (255/393) 75.71% (106/140)
UNTP test suite Coverage: 85%
85.75% (1090/1271) 81.35% (144/177) 67.21% (41/61)
VC test suite Coverage: 100%
100% (20/20) 100% (2/2) 100% (4/4)
UNTP Playground Coverage: 91%
90.82% (495/545) 84.85% (269/317) 92.3% (96/104)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant