@@ -62,7 +62,7 @@ describe('FilePicker FileList', () => {
6262 const consoleWarning = vi . spyOn ( console , 'warn' )
6363
6464 const wrapper = shallowMount ( FileList , {
65- propsData : {
65+ props : {
6666 currentView : 'files' ,
6767 multiselect : false ,
6868 allowPickDirectory : false ,
@@ -80,7 +80,7 @@ describe('FilePicker FileList', () => {
8080
8181 it ( 'header checkbox is not shown if multiselect is `false`' , ( ) => {
8282 const wrapper = shallowMount ( FileList , {
83- propsData : {
83+ props : {
8484 currentView : 'files' ,
8585 multiselect : false ,
8686 allowPickDirectory : false ,
@@ -95,7 +95,7 @@ describe('FilePicker FileList', () => {
9595
9696 it ( 'header checkbox is shown if multiselect is `true`' , async ( ) => {
9797 const wrapper = shallowMount ( FileList , {
98- propsData : {
98+ props : {
9999 currentView : 'files' ,
100100 multiselect : true ,
101101 allowPickDirectory : false ,
@@ -111,15 +111,15 @@ describe('FilePicker FileList', () => {
111111 const selectAll = wrapper . find ( '[data-testid="select-all-checkbox"]' )
112112 expect ( selectAll . exists ( ) ) . toBe ( true )
113113 // there is an aria label
114- expect ( selectAll . props ( 'ariaLabel ') ) . toBeTruthy ( )
114+ expect ( selectAll . attributes ( 'arialabel ') ) . toBeTruthy ( )
115115 // no checked
116- expect ( selectAll . props ( 'modelValue ') ) . toBe ( false )
116+ expect ( selectAll . attributes ( 'modelvalue ') ) . toBe ( ' false' )
117117 } )
118118
119119 it ( 'header checkbox is checked when all nodes are selected' , async ( ) => {
120120 const nodes = [ ...exampleNodes ]
121121 const wrapper = shallowMount ( FileList , {
122- propsData : {
122+ props : {
123123 currentView : 'files' ,
124124 multiselect : true ,
125125 allowPickDirectory : false ,
@@ -131,14 +131,14 @@ describe('FilePicker FileList', () => {
131131 } )
132132
133133 const selectAll = wrapper . find ( '[data-testid="select-all-checkbox"]' )
134- expect ( selectAll . props ( 'modelValue ') ) . toBe ( true )
134+ expect ( selectAll . attributes ( 'modelvalue ') ) . toBe ( ' true' )
135135 } )
136136
137137 describe ( 'file list sorting' , ( ) => {
138138 it ( 'is sorted initially by name' , async ( ) => {
139139 const nodes = [ ...exampleNodes ]
140140 const wrapper = mount ( FileList , {
141- propsData : {
141+ props : {
142142 currentView : 'files' ,
143143 multiselect : true ,
144144 allowPickDirectory : false ,
@@ -169,7 +169,7 @@ describe('FilePicker FileList', () => {
169169 it ( 'can sort descending by name' , async ( ) => {
170170 const nodes = [ ...exampleNodes ]
171171 const wrapper = mount ( FileList , {
172- propsData : {
172+ props : {
173173 currentView : 'files' ,
174174 multiselect : true ,
175175 allowPickDirectory : false ,
0 commit comments