Best approach for testing javascript UI with jasmine

I first looked at the structure of jasmine, and it looks really promising, but I could not find an easy way to work with dom.

I mean, simulating user interaction, for example, completing and entering data, pressing a button, and then checking the correctness of the dom update, for example, displaying errors after checking the input and displaying the changed data. Just the kind of material that you usually do with tools like selenium.

Is there a standard way to do this or check ui from a jasmine domain and should I look for another structure for such a task?

+7
source share
4 answers

jasmine-jquery is what most people use to test the jasmine user interface. It allows you to create sandbox tools to run your tests in determining most layouts that suit you. This is pretty straight forward and even if you don't rely on jQuery in your application, it will work great for testing.

+7
source

To issue a new child on the block https://github.com/tigbro/jasmine-ui

+2
source

You should take a look at DalekJS (still in alpha):

Automated browser interface testing

0
source

I'm still looking for the perfect solution for me, but the E2E article Testing with WebDriverJS and Jasmine looks to give a really good approach to using jasmine with selenium.

0
source

All Articles