@@ -79,7 +79,7 @@ describe('FilePicker FileList', () => {
7979 const consoleWarning = vi . spyOn ( console , 'warn' )
8080
8181 const wrapper = shallowMount ( FileList , {
82- propsData : {
82+ props : {
8383 currentView : 'files' ,
8484 multiselect : false ,
8585 allowPickDirectory : false ,
@@ -97,7 +97,7 @@ describe('FilePicker FileList', () => {
9797
9898 it ( 'header checkbox is not shown if multiselect is `false`' , ( ) => {
9999 const wrapper = shallowMount ( FileList , {
100- propsData : {
100+ props : {
101101 currentView : 'files' ,
102102 multiselect : false ,
103103 allowPickDirectory : false ,
@@ -112,7 +112,7 @@ describe('FilePicker FileList', () => {
112112
113113 it ( 'header checkbox is shown if multiselect is `true`' , ( ) => {
114114 const wrapper = shallowMount ( FileList , {
115- propsData : {
115+ props : {
116116 currentView : 'files' ,
117117 multiselect : true ,
118118 allowPickDirectory : false ,
@@ -122,18 +122,18 @@ describe('FilePicker FileList', () => {
122122 path : '/' ,
123123 } ,
124124 } )
125- const selectAll = wrapper . find ( '[data-testid="select-all-checkbox"]' )
125+ const selectAll = wrapper . getComponent ( '[data-testid="select-all-checkbox"]' )
126126 expect ( selectAll . exists ( ) ) . toBe ( true )
127127 // there is an aria label
128- expect ( selectAll . attributes ( 'aria-label ' ) ) . toBeTruthy ( )
128+ expect ( selectAll . attributes ( 'arialabel ' ) ) . toBeTruthy ( )
129129 // no checked
130- expect ( selectAll . props ( 'checked ' ) ) . toBe ( false )
130+ expect ( selectAll . props ( 'modelValue ' ) ) . toBe ( false )
131131 } )
132132
133133 it ( 'header checkbox is checked when all nodes are selected' , async ( ) => {
134134 const nodes = [ ...exampleNodes ]
135135 const wrapper = shallowMount ( FileList , {
136- propsData : {
136+ props : {
137137 currentView : 'files' ,
138138 multiselect : true ,
139139 allowPickDirectory : false ,
@@ -144,15 +144,15 @@ describe('FilePicker FileList', () => {
144144 } ,
145145 } )
146146
147- const selectAll = wrapper . find ( '[data-testid="select-all-checkbox"]' )
148- expect ( selectAll . props ( 'checked ' ) ) . toBe ( true )
147+ const selectAll = wrapper . getComponent ( '[data-testid="select-all-checkbox"]' )
148+ expect ( selectAll . props ( 'modelValue ' ) ) . toBe ( true )
149149 } )
150150
151151 describe ( 'file list sorting' , ( ) => {
152152 it ( 'is sorted initially by name' , async ( ) => {
153153 const nodes = [ ...exampleNodes ]
154154 const wrapper = mount ( FileList , {
155- propsData : {
155+ props : {
156156 currentView : 'files' ,
157157 multiselect : true ,
158158 allowPickDirectory : false ,
@@ -183,7 +183,7 @@ describe('FilePicker FileList', () => {
183183 it ( 'can sort descending by name' , async ( ) => {
184184 const nodes = [ ...exampleNodes ]
185185 const wrapper = mount ( FileList , {
186- propsData : {
186+ props : {
187187 currentView : 'files' ,
188188 multiselect : true ,
189189 allowPickDirectory : false ,
0 commit comments