I have python selenium automation and I am executing them using pytest. The pytest html report is getting generated but the format does not have CSS. Earlier it was working fine and I was getting a proper report with CSS, but now I am getting just a raw HTML report. My issue is similar to this
I am not sure what exactly is the issue. Any help would be appreciated, Thank you.
If viewing
pytest-htmlreports in Jenkins, you may need to configure the Jenkins settings (https://stackoverflow.com/a/46197356) for the HTML to render correctly. This is due to Jenkins CSP changes. That setting can be changed fromManage Jenkins>Script Consoleby running: