You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Since the release of @types/[email protected] I have this issue while running my protractor tests with typescript:
[18:37:17] E/launcher - Error: TSError: ⨯ Unable to compile TypeScript
e2e/app.e2e-spec.ts (19,45): Argument of type '"Hello world !"' is not assignable to parameter of type 'Expected<Promise<string>>'. (2345)
This trace back to this code:
expect(page.getParagraphText()).toEqual('Hello world !');
In the new jasmine types, the expect typings are now enforced (it wasn't the case before).
It seems that the protractor jasmine overrides that wait for Promises to resolve before performing the match needs to extends the typings for this to work correctly.
Bug report
Node Version: 6.x
Protractor Version: 5.x
Angular Version: 2.x
Browser(s): PhantomJS
Operating System and Version osx 10.12.11
victornoel, devoto13, marianocodes, timbru31, caseyhoward and 17 more