Skip to content

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

Open
himanshujane3 wants to merge 1 commit into
QualityOps:masterfrom
himanshujane3:patch-1
Open

Fix for afterTest Hook - test.passed to passed#51
himanshujane3 wants to merge 1 commit into
QualityOps:masterfrom
himanshujane3:patch-1

Conversation

@himanshujane3
Copy link
Copy Markdown

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
Copy Markdown
Contributor

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

@himanshujane3
Copy link
Copy Markdown
Author

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

@himanshujane3
Copy link
Copy Markdown
Author

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

@JustSittinHere
Copy link
Copy Markdown

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
Copy Markdown

@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