I'm aware that ember-cli can be used write unit, integration and acceptance tests for apps with default test-runners: QUnit and PhantomJS. I want to write acceptance tests for a remote website using ember-cli . I was able to write basic test cases for a local app created using:
ember new <login-test-repo>
ember generate acceptance-test login-test
I'm able to fill in, click and run tests on the local app, but when I change the rootURL of in the environment as I need a remote website to be tested, ember-cli adds "/" at the start to the remote website URL and tests fail with error:
The URL "/https://my-website.com" did not match any routes in your application
I'm pretty new to testing front-end apps with ember-cli. I've tested the same workflow with selenium where I can scrap and run acceptance tests for the webpage easily.
Any help on setting up ember-cli routes for remote webpage would be of great help. Thanks.
Aucun commentaire:
Enregistrer un commentaire