quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.92k stars 322 forks source link

Add some in-browser testing using playwright #10696

Open cderv opened 2 months ago

cderv commented 2 months ago

Some of revealjs feature, and especially our quarto-support plugin can't be tested unless we do automated headless testing.

This issue is to store the potential test to implement.

Revealjs

Website

HTML

PDF snapshot ?

It seems we could leverage PDF.js directly (or through quarto preview ?) to have PDF loading in browser and then do screenshot. More at

cscheid commented 2 months ago

Should we replace puppeteer with playwright everywhere in our issues going forward?

cderv commented 2 months ago

@mcanouil I believe puppeteer tag is about the rendering using chrome print we have internal to quarto, for example to have mermaid graph be image in PNG. it is different that the playwright stuff we have for tests. I mistitled indeed, but correctly put the testing tag, which seems enough.

mcanouil commented 2 months ago

Oh, thanks it add some sense to the previous comment.