We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should attempt to solve this situation as well, or at least better document failures.
For the record, the following all work:
expect(<primitive>).toEqual(<primitive>) expect(<promise>).toEqual(<promise>) expect(<promise>).toEqual(<primitive>)
The text was updated successfully, but these errors were encountered:
Support unwrapping promises when actual is primitive and expected val…
0d52142
…ue is a promise (angular#47)
If anyone stumbles upon this issue and needs a workaround, they may try wrapping every actual value in a promise.
actual
// protractor-config.js exports.config = { onPrepare: () => { const originalExpect = global.expect global.expect = (v) => originalExpect(Promise.resolve(v)) } }
Sorry, something went wrong.
This seems to be fixed. Using protractor@5, the test
expect(1).toEqual(Promise.resolve(2))
correctly results in the error
Expected 1 to equal 2
No branches or pull requests
We should attempt to solve this situation as well, or at least better document failures.
For the record, the following all work:
The text was updated successfully, but these errors were encountered: