Nearly a decade back I wrote a lot of browser CI tests with headless chrome as well as browser stack. I loved the idea, but they just didn’t handle things being a bit outside of perfect IRL, like taking a moment longer to load etc. They ended up having a lot of waits in them, taking a long time to write and were prone to being flakey. The tests basically lacked “common sense” and it made me think that one day someone would figure out how to make them work better.

I’m wondering if there are new frameworks, workflows, startups that have made this stuff easier and better. I’m not really in tech anymore but I wouldn’t mind writing some tests if the experience was better.

  • best_username_ever@sh.itjust.works
    link
    fedilink
    arrow-up
    12
    ·
    8 months ago

    People around me have used https://playwright.dev/ successfully and you can program it in multiple languages. That’s for web sites though.

    For real applications (like C++ or C#) it’s still a mess but it works fine, nothing really broke for the past 10/15 years.

    • vvv@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      I just started using this at $jorb. Check out their “ui-mode” is all I’m going to say about that.

    • hallettj@leminal.space
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      Modern frameworks like Playwright do a good job of avoiding those waits. So the tests are less flaky, and are faster.