Javascript .Error在jasmine指定的超时内未调用异步回调。默认\u超时\u间隔

Javascript .Error在jasmine指定的超时内未调用异步回调。默认\u超时\u间隔,javascript,node.js,angularjs,jasmine,protractor,Javascript,Node.js,Angularjs,Jasmine,Protractor,conf.js testcase.js exports.config = { directConnect: true, framework: 'jasmine', //seleniumAddress: 'http://localhost:4444/wd/hub', specs: ['FirstTestcase.js'], asmineNodeOpts: { defaultTimeoutInterval: 20000 },

conf.js

testcase.js

exports.config = {

    directConnect: true,

    framework: 'jasmine',
    //seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['FirstTestcase.js'],

    asmineNodeOpts: {
      defaultTimeoutInterval: 20000
    },

    capabilities: {
        browserName: 'chrome'
      }

}
我面临的问题是。我的登录页面不是用angular js开发的,一旦我登录,应用程序就是angular js

一旦我点击代码上的登录

我甚至试过了

describe("my first test case",function(){
    it("execute test case",function(){
        browser.waitForAngularEnabled(false);    
        browser.get("");
            element(By.id("username")).sendKeys("test");
            element(By.id("tenant")).sendKeys("demo");
            element(By.id("continue")).click();
            element(By.id("password")).sendKeys("test");
            element(By.id("login")).click();
            browser.waitForAngularEnabled(true);


    });
});
但没有任何帮助


有人能给出解决方案吗?

尝试增加-jasmineNodeOpts.defaultTimeoutInterval:20000(20秒)到jasmineNodeOpts.defaultTimeoutInterval:120000(20秒) 是2分钟


由于您的配置文件中有jasmineNodeOpts.defaultTimeoutInterval:20000,因此每个块函数都=beforeach、beforeach、afterEach和aftereall,并且它()在您的测试中,应分别在20秒内完成,否则跑步者会收到超时错误并显示错误信息。

可能是因为您有
asminodeopts
而不是
jasmineodeopts
?您能告诉我对答案投反对票的原因吗?
beforeEach(function(done) {
    setTimeout(function() {
        value = 0;
        done();
    }, 6000);
})