-
Notifications
You must be signed in to change notification settings - Fork 23
Add component tests for ClassTree #209
Copy link
Copy link
Open
Labels
frontendFrontend developmentFrontend developmentgood-first-issueGood for newcomersGood for newcomershelp-wantedExtra attention is neededExtra attention is neededtestingTesting and QATesting and QA
Description
Activity
Metadata
Metadata
Assignees
Labels
frontendFrontend developmentFrontend developmentgood-first-issueGood for newcomersGood for newcomershelp-wantedExtra attention is neededExtra attention is neededtestingTesting and QATesting and QA
Projects
- StatusShow more project fieldsTo triage
Description
Only three ontology components currently have tests (
header,property-details,new-entity-dialog).ClassTreehandles expand/collapse, selection, and sessionStorage persistence but is untested.Difficulty
Easy–Medium
Skills
React Testing Library, Jest
Relevant files
components/ontology/class-tree.tsxcomponents/ontology/__tests__/class-tree.test.tsx(create)lib/ontology/sample-data.ts— sample ontology for mocksTasks
components/ontology/__tests__/class-tree.test.tsxselectClassuseOntologywith sample dataAcceptance Criteria
npm testGetting started
test/class-treenpm ci && npm testbefore opening a PR