from Hacker News

Live Coding in Playwright

by mjgoeke on 8/25/22, 10:47 PM with 3 comments

  • by mjgoeke on 8/25/22, 10:47 PM

    Hi!

    I created a library at work that I'm pushing to get open sourced now. It provides live coding functionality for Playwright tests.

    It also has an extremely powerful user configurable recorder.

    I'm looking to add support to make it page-object-model aware next.

    It took 2 weeks to make so far, is < 100 lines code in playwright test side and < 100 lines code in the browser side to do the entire thing.

    Everything kept folding down smoothly and (almost) perfectly.

    I'm very proud of it :-)