@@ -261,106 +261,6 @@ test.describe('Ontology Explorer - Cross Glossary Edges', () => {
261261 } ) ;
262262} ) ;
263263
264- test . describe ( 'Ontology Explorer - Search Filtering - Node Visibility' , ( ) => {
265- const highlightGlossary = new Glossary ( ) ;
266- const termAlpha = new GlossaryTerm ( highlightGlossary ) ;
267- const termBeta = new GlossaryTerm ( highlightGlossary ) ;
268- const termGamma = new GlossaryTerm ( highlightGlossary ) ;
269-
270- test . beforeAll ( async ( { browser } ) => {
271- const { page, apiContext } = await createApiContext ( browser ) ;
272- await highlightGlossary . create ( apiContext ) ;
273- await termAlpha . create ( apiContext ) ;
274- await termBeta . create ( apiContext ) ;
275- await termGamma . create ( apiContext ) ;
276- // alpha — relatedTo → beta; gamma stays isolated
277- await addTermRelation ( apiContext , termAlpha , termBeta , 'relatedTo' ) ;
278- await disposeApiContext ( page , apiContext ) ;
279- } ) ;
280-
281- test . afterAll ( async ( { browser } ) => {
282- const { page, apiContext } = await createApiContext ( browser ) ;
283- await deleteEntities (
284- apiContext ,
285- termAlpha ,
286- termBeta ,
287- termGamma ,
288- highlightGlossary
289- ) ;
290- await disposeApiContext ( page , apiContext ) ;
291- } ) ;
292-
293- test ( 'searching by a term name shows only that term and its connected neighbour' , async ( {
294- page,
295- } ) => {
296- await navigateAndFilterByGlossary ( page , highlightGlossary . responseData . id ) ;
297-
298- const searchInput = page
299- . getByTestId ( 'ontology-graph-search' )
300- . locator ( 'input' ) ;
301- await searchInput . fill ( termAlpha . data . name ) ;
302-
303- const positions = await readNodePositions ( page ) ;
304-
305- expect (
306- positions ,
307- 'termAlpha must be visible — it matches the search query'
308- ) . toHaveProperty ( termAlpha . responseData . id ) ;
309- expect (
310- positions ,
311- 'termBeta must be visible — it is directly connected to termAlpha'
312- ) . toHaveProperty ( termBeta . responseData . id ) ;
313- expect (
314- positions ,
315- 'termGamma must be hidden — it is unrelated to the search query'
316- ) . not . toHaveProperty ( termGamma . responseData . id ) ;
317- } ) ;
318-
319- test ( 'searching by the isolated term shows only that term' , async ( {
320- page,
321- } ) => {
322- await navigateAndFilterByGlossary ( page , highlightGlossary . responseData . id ) ;
323-
324- const searchInput = page
325- . getByTestId ( 'ontology-graph-search' )
326- . locator ( 'input' ) ;
327- await searchInput . fill ( termGamma . data . name ) ;
328-
329- const positions = await readNodePositions ( page ) ;
330-
331- expect (
332- positions ,
333- 'termGamma must be visible — it matches the search query'
334- ) . toHaveProperty ( termGamma . responseData . id ) ;
335- expect (
336- positions ,
337- 'termAlpha must be hidden — it does not match and has no edge to termGamma'
338- ) . not . toHaveProperty ( termAlpha . responseData . id ) ;
339- expect (
340- positions ,
341- 'termBeta must be hidden — it does not match and has no edge to termGamma'
342- ) . not . toHaveProperty ( termBeta . responseData . id ) ;
343- } ) ;
344-
345- test ( 'clearing the search restores all three terms to the graph' , async ( {
346- page,
347- } ) => {
348- await navigateAndFilterByGlossary ( page , highlightGlossary . responseData . id ) ;
349-
350- const searchInput = page
351- . getByTestId ( 'ontology-graph-search' )
352- . locator ( 'input' ) ;
353- await searchInput . fill ( termAlpha . data . name ) ;
354-
355- await searchInput . clear ( ) ;
356-
357- const positions = await readNodePositions ( page ) ;
358- expect ( positions ) . toHaveProperty ( termAlpha . responseData . id ) ;
359- expect ( positions ) . toHaveProperty ( termBeta . responseData . id ) ;
360- expect ( positions ) . toHaveProperty ( termGamma . responseData . id ) ;
361- } ) ;
362- } ) ;
363-
364264test . describe ( 'Ontology Explorer - Data Mode Stats' , ( ) => {
365265 const dataModeGlossary = new Glossary ( ) ;
366266 const dataTerm1 = new GlossaryTerm ( dataModeGlossary ) ;
0 commit comments