Skip to content

Commit

Permalink
fix: add data-cy prop on file name labels
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Oct 29, 2021
1 parent 3019202 commit 8c2f7f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/inputs/UploadFile/UploadFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ export const UploadFile = (props) => {
<GetAppIcon />
</Grid>
<Grid item>
<Typography>{file.name}</Typography>
<Typography data-cy="file-name">{file.name}</Typography>
</Grid>
</Grid>
</Link>
)}
{file.status === UPLOAD_FILE_STATUS_KEY.READY_TO_UPLOAD && <Typography>{file.name}</Typography>}
{file.status === UPLOAD_FILE_STATUS_KEY.READY_TO_UPLOAD && (
<Typography data-cy="file-name">{file.name}</Typography>
)}
</Grid>
<Grid item>
<IconButton
Expand Down

0 comments on commit 8c2f7f2

Please sign in to comment.