@@ -184,47 +184,47 @@ test('handle unknown/incompatible interpretation gracefully', async () => {
184184
185185test ( 'show error/fallback for malformed NeXus entity' , async ( ) => {
186186 const errorSpy = mockConsoleMethod ( 'error' ) ;
187- const { selectNexusExplorerNode } = await renderApp ( '/nexus_malformed' ) ;
187+ const { selectExplorerNode } = await renderApp ( '/nexus_malformed' ) ;
188188
189189 // `default` attribute points to non-existant entity
190- await selectNexusExplorerNode ( 'default_not_found' ) ;
190+ await selectExplorerNode ( 'default_not_found' ) ;
191191 expect ( page . getByText ( 'No entity found at /test' ) ) . toBeVisible ( ) ;
192192 errorSpy . mockClear ( ) ;
193193
194194 // No `signal` attribute
195- await selectNexusExplorerNode ( 'no_signal' ) ;
195+ await selectExplorerNode ( 'no_signal' ) ;
196196 expect ( page . getByText ( 'Nothing to display' ) ) . toBeInTheDocument ( ) ;
197197 expect ( errorSpy ) . not . toHaveBeenCalled ( ) ;
198198 errorSpy . mockClear ( ) ;
199199
200200 // `signal` attribute points to non-existant dataset
201- await selectNexusExplorerNode ( 'signal_not_found' ) ;
201+ await selectExplorerNode ( 'signal_not_found' ) ;
202202 expect (
203203 page . getByText ( 'Expected "unknown" signal entity to exist' ) ,
204204 ) . toBeVisible ( ) ;
205205 errorSpy . mockClear ( ) ;
206206
207207 // Signal entity is not a dataset
208- await selectNexusExplorerNode ( 'signal_not_dataset' ) ;
208+ await selectExplorerNode ( 'signal_not_dataset' ) ;
209209 expect (
210210 page . getByText ( 'Expected "some_group" signal to be a dataset' ) ,
211211 ) . toBeVisible ( ) ;
212212 errorSpy . mockClear ( ) ;
213213
214214 // Old-style signal entity is not a dataset
215- await selectNexusExplorerNode ( 'signal_old-style_not_dataset' ) ;
215+ await selectExplorerNode ( 'signal_old-style_not_dataset' ) ;
216216 expect (
217217 page . getByText ( 'Expected old-style "some_group" signal to be a dataset' ) ,
218218 ) . toBeVisible ( ) ;
219219 errorSpy . mockClear ( ) ;
220220
221221 // Shape of signal dataset is not array
222- await selectNexusExplorerNode ( 'signal_not_array' ) ;
222+ await selectExplorerNode ( 'signal_not_array' ) ;
223223 expect ( page . getByText ( 'Expected array shape' ) ) . toBeVisible ( ) ;
224224 errorSpy . mockClear ( ) ;
225225
226226 // Type of signal dataset is not numeric
227- await selectNexusExplorerNode ( 'signal_not_numeric' ) ;
227+ await selectExplorerNode ( 'signal_not_numeric' ) ;
228228 expect (
229229 page . getByText ( 'Expected numeric, boolean, enum or complex type' ) ,
230230 ) . toBeVisible ( ) ;
@@ -393,3 +393,8 @@ test('retry fetching automatically when selecting other NxHeatmap slice', async
393393 runAll ( ) ;
394394 await expect . element ( page . getByRole ( 'figure' ) ) . toBeVisible ( ) ;
395395} ) ;
396+
397+ test ( 'visualize NXnote group' , async ( ) => {
398+ await renderApp ( '/nexus_note' ) ;
399+ expect ( page . getByText ( '"energy": 10.2' ) ) . toBeVisible ( ) ;
400+ } ) ;
0 commit comments