Closed emteknetnz closed 1 year ago
I don't think this is possible unfortunately.
This regression only happens when you click "Upload new" rather that "Choose existing', and you select a file from the (native) file selector dialog.
Unfortunately there isn't a way to get behat to "select a file from the file selector" - when you get behat to click "Upload new", there is no file selector, though the link "Upload new" is underlined.
There are no existing tests where "Upload new is clicked", in fact all the "upload" tests will "Choose existing" i.e. pre-uploaded files - so I'm not the first person to run into this issue.
I think we'll just have to make do with the behat test as it is.
Bugger. Well, we can't win em all 😅
Issue https://github.com/silverstripe/silverstripe-asset-admin/issues/1352
Reverts part of this commit - https://github.com/silverstripe/silverstripe-asset-admin/commit/45e7461a549ae858999eacd8d11eaeb4bbe13515#