Skip to content
New issue

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

Fix for afterTest Hook - test.passed to passed #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

himanshujane3
Copy link

test.passed is always undefined as there is no such property
condition should be checking for passed property
This was causing unnecessary screenshot after each test.

test.passed is always undefined as there is no such property
condition should be checking for passed property
This was causing unnecessary screenshot after each test.
@benzaremean
Copy link
Contributor

hi @himanshujane3 Ive not really looked at this with version 6 of wdio

@himanshujane3
Copy link
Author

Hi @benzaremean I have verified this with latest version of wdio - Please accept the PR

@himanshujane3
Copy link
Author

Hi @benzaremean As updated in my previous comment. This changes is absolutely safe, could you please accept the PR

@JustSittinHere
Copy link

Has this been tested on the latest version of wdio? The afterTest function takes 3 params, with results being the 3rd one

https://github.com/webdriverio/webdriverio/blob/2ace7fbac3517444634c45a05b42edbbc85f3a19/packages/wdio-types/src/Services.ts#L194

Need to add the context param, otherwise passed is still undefined.

@alexbradford3
Copy link

@benzaremean Is there any chance this PR gets reviewed and merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants