我使用Angular 为1的 protractor .x、 我想一步一步地迁移到Angular 2.0,但我没有看到 protractor in the docs.
protractor 是从Angular 2开始掉下来的吗?我应该在不使用 protractor 的情况下编写测试,而使用茉莉花(或其他工具)吗?
我使用Angular 为1的 protractor .x、 我想一步一步地迁移到Angular 2.0,但我没有看到 protractor in the docs.
protractor 是从Angular 2开始掉下来的吗?我应该在不使用 protractor 的情况下编写测试,而使用茉莉花(或其他工具)吗?
You can test Angular 2 applications with 100(从 protractor 2.5.0开始).
对于Protractor 5.0.0+,你不需要做任何具体的事情,Protractor will auto-detect the Angular version used in the application under test.
For Protractor >= 2.5.0 and <= 4.0.14, you would only need to add useAllAngular2AppRoots: true
to your config. Here is a sample.
请注意,几个内置 protractor 匹配器还不能与Angular2配合使用,请参见:
Firefox中还有 protractor +Angular 2问题(仍未解决),请参阅: