DEV Community

Discussion on: Which framework use for an e2e tests of an SPA?

Collapse
 
chrisvasqm profile image
Christian Vasquez • Edited

Hey Rafal,

As an alternative to Selenium, I'm a fan of TestCafe, it's fairly simple to install using npm and supports both JavaScript and TypeScript (which might feel better coming from .NET).

Things I like about it:

  • How fast you can start working.
  • It handles waits automatically.
  • Supports multiple browsers out of the box with also concurrency (let's you have N instances of any browsers at the same time with no extra setup).
  • There are a few extensions for VS Code to make our lives easier with code templates and right click to run an specific or group of tests.
  • While the test are running, it shows a waiting bar at the bottom of the window so you know when it is not able to find an element.
  • And it renders a big mouse pointer to show where exactly it is clicking on the page.

I wrote a few posts as examples which you can find here.

Collapse
 
rhymes profile image
rhymes

I've tried TestCafe but I couldn't make it work with webpack's dev proxy server and mocking.

I have the frontend separate from the backend and I would like to test the frontend isolated from the backend.

You can even find my github comment about it here - github.com/DevExpress/testcafe/iss...

Collapse
 
rafalpienkowski profile image
Rafal Pienkowski

Hi Christian.

Thanks for your replay. I'll look closer to the TestCafe. Great that you've written some posts with examples of usage. I think they will be beneficial for me.

Cheers.