Closed
Description
When I attach an application/octet-stream
I want to be able to download the attachment and open it using a dedicated application. This also applies to all other supported and unsupported types.
Additionally when I attach a file with a file name, I this file name should be reflected in the download. So for example when I download the file attached with the code below then the file dialog should suggest cucumber-growing-on-vine.jpg
as the file name.
Path path = Paths.get("src/test/resources/features/attachments/cucumber-growing-on-vine.jpg");
byte[] bytes = Files.readAllBytes(path);
String fileName = path.getFileName().toString();
scenario.attach(bytes, "image/jpg", fileName);
Also, nothing can plausible render an application/octet-stream
so the request for a PR isn't necessary here.