Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

Of cause I can use selenium-standalone with XPath to test an app. But testing the SPA could be challenging sometime.

But, for example, angularjs's team provides protractor for this purpose.

The reason behind protractor as I can see is that protractor waits till angularjs will be loaded and a few more features:

Protractor provides some new locator strategies and functions which are very helpful to automate the AngularJS application. Examples include things like: waitForAngular, By.binding, By.repeater, By.textarea, By.model, WebElement.all, WebElement.evaluate, etc.

So, the question is: Is it any tool or best practice for e2e testing in Vuejs?

UPD: feel free to post links to tutorials, examples, and everything cool about e2e-testing in vue.js. Thanks.

1 Answer

0 votes
by (62.9k points)

I recommend using https://devexpress.github.io/testcafe.

Pros:

  • easy install

  • complete test harness

  • javascript ES2016 with (async/await)

  • flexible selector system

  • smart assertions with a retry policy

  • reports

See the simple tutorial here.

Browse Categories

...