ng2-bootstrap。 e2e测试期间的错误

问题描述:

试图运行ng2-bootstrap的e2e测试并遇到一些问题。有兴趣,如果这是突出我或不。ng2-bootstrap。 e2e测试期间的错误

下面是我在做什么:

  1. 下载从 https://github.com/valor-software/ng2-bootstrap
  2. 运行最新的npm-install
  3. 运行npm run build
  4. 运行npm run link
  5. 最后运行nmp run e2e

在第一次运行我得到了一个错误:SpecReporter is not a constructor我能够在protractor.conf.js更换const SpecReporter = require('jasmine-spec-reporter');const SpecReporter = require('jasmine-spec-reporter').SpecReporter;

修复,但不是还有另一个错误:Cannot find namespace 'webdriver'我无法弄清楚如何固定。

所以,如果有人可以重复上述步骤,让我知道如果你得到了相同的结果,我会很感激。

我已经创建了一个问题,在GitHub上一下:https://github.com/valor-software/ng2-bootstrap/issues/1665

尝试import * as webdriver from 'selenium-webdriver';