webdriverio-boneyard / wdio-jasmine-framework

A WebdriverIO v4 plugin. Adapter for Jasmine testing framework.
http://webdriver.io/
MIT License
23 stars 23 forks source link

browser.debug() times out #9

Closed kurtharriger closed 8 years ago

kurtharriger commented 8 years ago

In theory you should be able to call brower.debug() to manually inspect the browser state continue when you are ready by pressing enter at the console. http://webdriver.io/api/utility/debug.html

I get that async tests shouldn't wait forever, but it would be nice if there was a way to disable this automatic timeout when debugging.

patthiel commented 8 years ago

Thinking about this issue.. When running tests via WDIO test runner, the jasmine timeout is controlled via the wdio.conf.js file in

jasmineNodeOpts: {
        // Jasmine default timeout
        defaultTimeoutInterval: timeoutHere
} 

I don't know if there's an easy way for this timeout to get ignored when calling browser.debug()... Instead, i'd suggest just changing the default timeout to something like 60000 * 60 when debugging..

As a best practice, you may want to set up a separate debug.wdio.conf.js with custom options like this that you ultimately will not want as your standard wdio configuration.

EDIT

You could also set the jasmine default timeout when running the wdio command with the--jasmineOpts.* option. See: http://webdriver.io/guide/testrunner/gettingstarted.html for more info.

christian-bromann commented 8 years ago

@patthiel thanks for your comment. @kurtharriger please increase the default timeout as @patthiel suggested