@@ -110,11 +110,11 @@ const PendingRootRow = ({
110
110
} ;
111
111
112
112
return (
113
- < div className = "root-row" >
113
+ < div className = "root-row testid:upload-root-modal-row " >
114
114
< div className = "root-details mt-2" >
115
115
< div className = "flex items-center" >
116
116
< div className = "w-10 h-10 flex items-center justify-center bg-[#f3f3f7] rounded-md" >
117
- < div className = "w-full h-full flex items-center justify-center testid:upload-modal-row-type" >
117
+ < div className = "w-full h-full flex items-center justify-center testid:upload-root- modal-row-type" >
118
118
{ itemTypeIcon ( firstPendingFile ?. type ) }
119
119
</ div >
120
120
</ div >
@@ -134,7 +134,7 @@ const PendingRootRow = ({
134
134
{ isUploadCompleted ? (
135
135
< button
136
136
onClick = { handleShowFolder }
137
- className = "hover:bg-gray-100 p-2 rounded-md transition-all duration-200 testid:upload-modal-row-show-folder"
137
+ className = "hover:bg-gray-100 p-2 rounded-md transition-all duration-200 testid:upload-root- modal-row-show-folder"
138
138
>
139
139
{ ! isFileRoot && (
140
140
< >
@@ -158,18 +158,23 @@ const PendingRootRow = ({
158
158
! [ 'cancelled' , 'failed' ] . includes ( root . status ) &&
159
159
firstPendingFile ?. status !== 'error' && (
160
160
< >
161
- < button
162
- onClick = { ( ) => pauseOrResumeRootUpload ( rootKey ) }
163
- className = "hover:bg-blue-100 p-2 rounded-md transition-all duration-200 testid:upload-modal-row-pause-resume"
164
- >
165
- { root . status === 'paused' ? (
161
+ { root . status === 'paused' ? (
162
+ < button
163
+ onClick = { ( ) => pauseOrResumeRootUpload ( rootKey ) }
164
+ className = "hover:bg-blue-100 p-2 rounded-md transition-all duration-200 testid:upload-root-modal-row-resume"
165
+ >
166
166
< ResumeIcon className = "hover:scale-110 transition-transform duration-200" />
167
- ) : (
167
+ </ button >
168
+ ) : (
169
+ < button
170
+ onClick = { ( ) => pauseOrResumeRootUpload ( rootKey ) }
171
+ className = "hover:bg-blue-100 p-2 rounded-md transition-all duration-200 testid:upload-root-modal-row-pause"
172
+ >
168
173
< PauseIcon className = "hover:scale-110 transition-transform duration-200" />
169
- ) }
170
- </ button >
174
+ </ button >
175
+ ) }
171
176
< button
172
- className = "ml-2 hover:bg-red-100 p-2 rounded-md transition-all duration-200 testid:upload-modal-row-cancel"
177
+ className = "ml-2 hover:bg-red-100 p-2 rounded-md transition-all duration-200 testid:upload-root- modal-row-cancel"
173
178
onClick = { ( ) => cancelRootUpload ( rootKey ) }
174
179
>
175
180
< CancelIcon className = "hover:scale-110 transition-transform duration-200" />
@@ -185,7 +190,7 @@ const PendingRootRow = ({
185
190
{ ! showFolder && (
186
191
< div className = "w-full h-[3px] bg-[#F0F2F3]" >
187
192
< div
188
- className = { `testid:upload-modal-row-progress h-full ${
193
+ className = { `testid:upload-root- modal-row-progress h-full ${
189
194
root . status === 'failed'
190
195
? 'bg-[#FF0000]' // Red color for failed uploads
191
196
: root . status === 'cancelled'
0 commit comments