@@ -114,4 +114,92 @@ describe.concurrent("Concept", () => {
114114 screen . getByRole ( "heading" , { name : / d c t i t l e D E / i } )
115115 ) . toBeInTheDocument ( )
116116 } )
117+
118+ it ( "renders conceptScheme component with publisher" , ( ) => {
119+ useSkoHubContext . mockReturnValue ( {
120+ data : {
121+ currentScheme : { } ,
122+ selectedLanguage : "de" ,
123+ } ,
124+ updateState : vi . fn ( ) ,
125+ } )
126+
127+ const route = "/w3id.org/index.html"
128+ const history = createHistory ( createMemorySource ( route ) )
129+ const location = { search : "?lang=de" }
130+ renderConceptScheme ( history , ConceptSchemePC , location )
131+ expect (
132+ screen . getByRole ( "heading" , { name : / P u b l i s h e r / i } )
133+ ) . toBeInTheDocument ( )
134+ } )
135+
136+ it ( "renders conceptScheme component with issued" , ( ) => {
137+ useSkoHubContext . mockReturnValue ( {
138+ data : {
139+ currentScheme : { } ,
140+ selectedLanguage : "de" ,
141+ } ,
142+ updateState : vi . fn ( ) ,
143+ } )
144+
145+ const route = "/w3id.org/index.html"
146+ const history = createHistory ( createMemorySource ( route ) )
147+ const location = { search : "?lang=de" }
148+ renderConceptScheme ( history , ConceptSchemePC , location )
149+ expect ( screen . getByRole ( "heading" , { name : / I s s u e d / i } ) ) . toBeInTheDocument ( )
150+ } )
151+
152+ it ( "renders conceptScheme component with license" , ( ) => {
153+ useSkoHubContext . mockReturnValue ( {
154+ data : {
155+ currentScheme : { } ,
156+ selectedLanguage : "de" ,
157+ } ,
158+ updateState : vi . fn ( ) ,
159+ } )
160+
161+ const route = "/w3id.org/index.html"
162+ const history = createHistory ( createMemorySource ( route ) )
163+ const location = { search : "?lang=de" }
164+ renderConceptScheme ( history , ConceptSchemePC , location )
165+ expect (
166+ screen . getByRole ( "heading" , { name : / L i c e n s e / i } )
167+ ) . toBeInTheDocument ( )
168+ } )
169+
170+ it ( "renders conceptScheme component with preferredNamespaceUri" , ( ) => {
171+ useSkoHubContext . mockReturnValue ( {
172+ data : {
173+ currentScheme : { } ,
174+ selectedLanguage : "de" ,
175+ } ,
176+ updateState : vi . fn ( ) ,
177+ } )
178+
179+ const route = "/w3id.org/index.html"
180+ const history = createHistory ( createMemorySource ( route ) )
181+ const location = { search : "?lang=de" }
182+ renderConceptScheme ( history , ConceptSchemePC , location )
183+ expect (
184+ screen . getByRole ( "heading" , { name : / P r e f e r r e d N a m e s p a c e U R I / i } )
185+ ) . toBeInTheDocument ( )
186+ } )
187+
188+ it ( "renders conceptScheme component with preferredNamespace Prefix" , ( ) => {
189+ useSkoHubContext . mockReturnValue ( {
190+ data : {
191+ currentScheme : { } ,
192+ selectedLanguage : "de" ,
193+ } ,
194+ updateState : vi . fn ( ) ,
195+ } )
196+
197+ const route = "/w3id.org/index.html"
198+ const history = createHistory ( createMemorySource ( route ) )
199+ const location = { search : "?lang=de" }
200+ renderConceptScheme ( history , ConceptSchemePC , location )
201+ expect (
202+ screen . getByRole ( "heading" , { name : / P r e f e r r e d N a m e s p a c e P r e f i x / i } )
203+ ) . toBeInTheDocument ( )
204+ } )
117205} )
0 commit comments