juliemr / protractor-demo

Demo test application and protractor tests
MIT License
166 stars 139 forks source link

Screenshot reporter doesn't wait for last screenshot before quitting #16

Open fenduru opened 9 years ago

fenduru commented 9 years ago

Using this reporter, sometimes Protractor exits before the takeScreenshot() promise is resolved. This causes the last test to occasionally not have a screenshot generated.

My guess would be that _teardownEnv() or the driver's quit() are not chaining onto the last browser action's promise, but I'm unsure. Do you have any ideas why this would happen?

It seems to be a race condition. It only happens sometimes and I've only seen it happen with Firefox (I've tried with Firefox and Chrome)