angular-js とカルマを使用して E2E テストを作成しようとしていますが、何らかの理由でテストが進行せず、navigateTo() でハングします。
私が使用しているコードは
describe('Login', function(){
beforeEach(function(){
browser().navigateTo('http://localhost/blah');
window.sleep(1);
});
it('should log in a user and redirect', function(){
input('email').enter('user');
input('password').enter('pass');
element(':button').click();
expect(browser().location().url()).toBe('/newBlahPage');
});
});
htmlマークアップは
<form action="" method="">
<input type="test" name="email" id="email />
<input type="password" name="pass" id="pass" />
<button type=""submit">login</button>
</form>
それがそれ自体のテストなのか、サーバー側の認証なのか、それとも私がまだ考えていたことを見逃しているだけなのかはわかりません。