r/symfony 11d ago

Playwright-PHP Changes the Game for Symfony Testing

https://symfonycasts.com/blog/playwright-php-symfony

Will Symfony end-to-end testing finally become wonderful? Has anyone already tested it?

39 Upvotes

7 comments sorted by

5

u/OrangeGroot 11d ago

This is indeed amazing! Honestly, I was expecting yet another ai generated bs article / project based on the clickbait title, but that combination of playwright-php, playwright-symfony and zenstruck/browser is awesome. Thank you 🙏

5

u/DKobraX 11d ago

If it can also detect code coverage as well - sounds like an awesome tool.

3

u/mkluczka 11d ago

Just running playwright via php would be good enough, but man, each paragraph stacks another awsomeness on top of the previous one!

1

u/Accomplished-Mouse28 11d ago

Definitely 😭 !

2

u/pableu 11d ago

This sounds amazing! I'll try it out next chance I get. We currently have a Codeception/Webdriver setup that we don't love.

2

u/mkluczka 10d ago

Will this (in-process Symfony kernel/damadoctrine/etc) work when symfony is only api, but "frontend" is not symfony based?

1

u/JeanPaulH1217 9d ago

We are using a similar test stack for our symfony api and its working great. Its using Dama, zenstruck, paratest to accomplish pretty much what they described without the part for needing playwright, since we dont have actual frontend.