Skip to content

SVG images aren't displayed correctly #2893

@harmin-parra

Description

@harmin-parra

Describe the Bug

The report contains SVG images (in XML format)

They aren't correctly displayed when using the serve command option
allure serve
Image

They got correctly displayed when generating the report in a single page
allure generate --single-file
Image

Steps to Reproduce

Create a python pytest test and attach 2 SVG files to the Allure report

def test_svf():
    allure.attach.file("file.svg", name="comment")
    allure.attach.file("file2.svg", name="comment")

Generate the report with
allure serve

Expected Behaviour

The SVG images are correctly displayed

Screenshots or Additional Context

No response

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-python

What version of Allure Integration you are using?

2.13.5

What version of Allure Report you are using?

2.32.2

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions