2
我從量角器版本4.0.14升級到版本5.0.0,現在我的測試失敗。我使用http-backend-proxy來嘲笑後端。量角器版本5.0 Http後端代理失敗
測試運行罰款與4.0.14版本,但無法與InvalidElementState錯誤,當我升級到5.0版本:
E/launcher - invalid element state: Failed to execute 'querySelector' on 'Document': The provided selector is empty.
(Session info: chrome=56.0.2924.87)
(Driver info: chromedriver=2.26.436421 (6c1a3ab469ad86fd49c8d97ede4a6b96a49ca5f6),platform=Mac OS X 10.11.4 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 36 milliseconds
而且它失敗(在響應線):
afterLoadLogin: function() {
httpBackend
.when('POST', this.URL + 'user/login')
.respond(function() {
return [$httpBackend.context.loginStatus, $httpBackend.context.login];
});
}