Protractor で AngularJS 非依存アプリケーションをテストする為の設定
解決したいこと
Protractor は デフォルトで AngularJS を使う前提になっている為、AngularJS を使用していないアプリケーションをテストしようとするとエラーになる。
Message:
Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window"
Stack:
Error: Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window"
解決策
以下の行を追記する。
browser.ignoreSynchronization = true;
例: beforeEach
に追記しておくと楽ちん
describe('Test', function() {
beforeEach(function() {
browser.ignoreSynchronization = true;
});
});