Skip to content

Automated Testing FAQ's

Chirag Sanghvi edited this page Sep 20, 2016 · 33 revisions

FAQ's related to E2E testing using Protractor and Jasmine


  • Page being automatically reloaded during test ? I am writing test for recordset in Chaise. But after page is loaded, the address bar is updated with extra “/” after “#”.So the original url http://…/#1234/schema:table which becomes http://…/#/1234/schema:table, and that causes app to throw error.

    This issue has been documented here. It happens because of the default angular routing. Protractor depends on it. We are not using the default angular routing in Chaise and Protractor tries to use that when we are changing the location using browser.get. For now you just want to get rid of the explicit routing that has been added in your apps as seen here.


  • There are errors with the import module 'ermrest-data-utils' importing schemas in the test

    This is mostly because of some changes in the ermrest-data-utils module. Just update it using command npm update ermrest-data-utils


  • Test Failed: "defer.fulfill" is not a function

    This is mostyl because of a newer version of the promise library Q. We have fixed the version to ^1.4.1. If you face issues with any other modules, just try to fix their version numbers in the package.json to the last stable version.


  • Installation issues: saying selenium not found or unable to run tests because of selenium issue or some other module issue

    The best way to tackle this is deleting your node_modules folder and reinstall all dependencies. Once you're done deleting the folder, run sudo make deps. This command will install all possible dependencies defined in the package.json and update your selenium-driver.

Clone this wiki locally