File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
packages/app/src/__tests__ Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,23 @@ import { expect, test } from 'vitest';
44import { getSelectedVisTab , renderApp , waitForAllLoaders } from '../test-utils' ;
55import { NxDataVis } from '../vis-packs/nexus/visualizations' ;
66
7+ test ( 'pick auxiliary signal on NX Line' , async ( ) => {
8+ const { user } = await renderApp ( '/nexus_entry/spectrum_with_aux' ) ;
9+ expect ( getSelectedVisTab ( ) ) . toBe ( NxDataVis . NxLine ) ;
10+ expect (
11+ screen . getByRole ( 'figure' , { name : 'twoD (arb. units)' } ) ,
12+ ) . toBeVisible ( ) ;
13+
14+ await user . click ( screen . getByRole ( 'button' , { name : 'Signals' } ) ) ;
15+ await user . click ( screen . getByRole ( 'checkbox' , { name : 'secondary' } ) ) ;
16+ await user . click ( screen . getByRole ( 'checkbox' , { name : 'tertiary_cplx' } ) ) ;
17+ await waitForAllLoaders ( ) ;
18+
19+ expect (
20+ screen . getByRole ( 'checkbox' , { name : 'Auxiliary signals' } ) ,
21+ ) . not . toBeChecked ( ) ;
22+ } ) ;
23+
724test ( 'pick auxiliary signal on NX Heatmap' , async ( ) => {
825 const { user } = await renderApp ( '/nexus_entry/image_with_aux' ) ;
926 expect ( getSelectedVisTab ( ) ) . toBe ( NxDataVis . NxHeatmap ) ;
You can’t perform that action at this time.
0 commit comments