karma-browserstack-launcher icon indicating copy to clipboard operation
karma-browserstack-launcher copied to clipboard

Detect (BrowserStack) launcher within tests

Open drzraf opened this issue 5 years ago • 1 comments

I'm using Jasmine and found that when run with the BrowserStack karma launcher, test taking 4 seconds locally would take ~30 seconds. I'd like to dynamically adapt jasmine.DEFAULT_TIMEOUT_INTERVAL (increase it only for BrowserStack). Is there anything (within window.*?) I could rely on in order to tweak this setting dynamically?

drzraf avatar Nov 23 '20 15:11 drzraf

@drzraf the browsers used on BrowserStack are identical to the ones used locally. Hence you would find no difference in the window objects between the two browsers.

RohanImmanuel avatar Nov 24 '20 18:11 RohanImmanuel