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

Problem with screenshot for last step in suite. #20

Closed
drptbl opened this issue Aug 6, 2015 · 2 comments
Closed

Problem with screenshot for last step in suite. #20

drptbl opened this issue Aug 6, 2015 · 2 comments

Comments

@drptbl
Copy link

drptbl commented Aug 6, 2015

Hello,
Everything works fine, I see all steps in HTML report, but when I press on last step (when screenshot should open), it doesn't exist - screenshot for last step in my suite is not saving, no idea why.

Feel free to check it out by running this repo with Protractor:
https://github.com/drptbl/protractortesting/tree/lastscreenshotmissing

I'm talking about this step:
"✓should close cookie frame after acceptation (12 s)" - screenshot is missing.

Any ideas how to fix?
Tried wait and sleep after last step without success.

@drptbl drptbl changed the title Doesn't capture screenshot for last step? Problem with screenshot for last step in suite. Aug 6, 2015
@marklagendijk
Copy link

See issue #18. This is a bug in Protractor. You can use the following workaround:

// Hack to force Protractor to wait untill all Jasmine reporters are done.
// See: https://github.com/angular/protractor/issues/1938#issuecomment-96276252
afterAll(function(done){
    process.nextTick(done);
});

@drptbl
Copy link
Author

drptbl commented Sep 9, 2015

It worked, thanks!

Issue can be closed now 👍

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

No branches or pull requests

3 participants