ng2-bootstrap。 e2e测试期间的错误
问题描述:
试图运行ng2-bootstrap的e2e测试并遇到一些问题。有兴趣,如果这是突出我或不。ng2-bootstrap。 e2e测试期间的错误
下面是我在做什么:
- 下载从 https://github.com/valor-software/ng2-bootstrap
- 运行最新的
npm-install
- 运行
npm run build
- 运行
npm run link
- 最后运行
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';