winkingzhang / idea-run-wdio

The WebdriverIO Plugin is going to be your brilliant ideas to run test cases over @wdio/cli.
Apache License 2.0
5 stars 1 forks source link

When Debug it discregards Mocha timeout settings in wdio.conf.js and still expects it to be 2000ms #16

Open urichka opened 3 years ago

urichka commented 3 years ago

I have mochaOpts: { ui: 'bdd', timeout: 600000 },

in my wdio.conf.js which I specified in the plugin configuration settings. But when Debug the test fails with

Error: Timeout of 2000ms exceeded. The execution in the test "New sale Creste Customer Test" took too long. Try to reduce the run time or increase your timeout for test specs (https://webdriver.io/docs/timeouts). (C:\Ira\Work\AutoTests\cr_qa\SaperaWebdriverIOTests\tests\POSTests\AllPosTests.js) at createTimeoutError (C:\Ira\Work\AutoTests\cr_qa\SaperaWebdriverIOTests\node_modules\mocha\lib\errors.js:498:15) at Test.Runnable._timeoutError (C:\Ira\Work\AutoTests\cr_qa\SaperaWebdriverIOTests\node_modules\mocha\lib\runnable.js:431:10) at Timeout. (C:\Ira\Work\AutoTests\cr_qa\SaperaWebdriverIOTests\node_modules\mocha\lib\runnable.js:246:24) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7)

When Run the same configuration everything is ok

Additional Info: When the update ( 2021.7.23-0) was installed the runner has stopped working and I had to select another Wdio test frameworks in the configuration settings , apply the change and then switch it back to 'Mocha'. That helped but now I have this one..