@@ -6,10 +6,9 @@ function createWrapper(props) {
66 return render (
77 < PrimaryWindow
88 classes = { { } }
9- windowId = "xyz"
109 { ...props }
1110 /> ,
12- { preloadedState : { windows : { xyz : { collectionPath : [ { } ] , companionWindowIds : [ ] } } } } ,
11+ { preloadedState : { windows : { xyz : { collectionPath : [ { } ] , companionWindowIds : [ ] } } } , windowId : 'xyz' } ,
1312 ) ;
1413}
1514
@@ -30,8 +29,7 @@ describe('PrimaryWindow', () => {
3029 } ) ;
3130 it ( 'should render <GalleryView> if fetching is complete and view is gallery' , async ( ) => {
3231 createWrapper ( { isFetching : false , view : 'gallery' } ) ;
33- await screen . findByRole ( 'region' , { accessibleName : 'gallery section' } ) ;
34- expect ( document . querySelector ( '#xyz-gallery' ) ) . toBeInTheDocument ( ) ; // eslint-disable-line testing-library/no-node-access
32+ expect ( await screen . findByRole ( 'region' , { accessibleName : 'gallery section' } ) ) . toBeInTheDocument ( ) ;
3533 } ) ;
3634 it ( 'should render <CollectionDialog> and <SelectCollection> if manifest is collection and isCollectionDialogVisible' , async ( ) => {
3735 render ( < div id = "xyz" /> ) ;
@@ -40,9 +38,8 @@ describe('PrimaryWindow', () => {
4038 classes = { { } }
4139 isCollection
4240 isCollectionDialogVisible
43- windowId = "xyz"
4441 /> ,
45- { preloadedState : { windows : { xyz : { collectionPath : [ { } ] } } } } ,
42+ { preloadedState : { windows : { xyz : { collectionPath : [ { } ] } } } , windowId : 'xyz' } ,
4643 ) ;
4744 await screen . findByRole ( 'button' , { accessibleName : 'show collection' } ) ;
4845 } ) ;
0 commit comments