-
-
Notifications
You must be signed in to change notification settings - Fork 764
Closed
Description
Describe the Bug
After update allure from 2.23.1 to 2.24.0 changed behaviour opening attachments in report. When click to open attachment in new tab, download window opens.

Steps to Reproduce
- Run test with adding attachment (for example, page source)
- Generate report
allure serve target/allure-results - Open test in a report
- Click 'Open attachment in new tab'
Expected Behaviour
Attachment opens in new tab
Screenshots or Additional Context
import io.qameta.allure.Allure;
import org.junit.jupiter.api.Test;
import static com.codeborne.selenide.Selenide.open;
import static com.codeborne.selenide.WebDriverRunner.getWebDriver;
class AllureTest {
public void attachPageSource() {
String pageSource = getWebDriver().getPageSource();
if (!pageSource.isEmpty()) {
Allure.addAttachment("Page source", "text/html", pageSource, "html");
}
}
@Test
void attachSource() {
open("http://google.com");
attachPageSource();
}
}
What Language are you using?
Java
What Framework/Allure Integration you are using?
allure-junit5
What version of Allure Integration you are using?
2.24.0
What version of Allure Report you are using?
2.24.0
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels