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
mocha-utils defaultBrowserOptions don't take values from mocha config into account #6500
Comments
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
Not sure if this issue is still valid or not. The location of both files have been changed and I cannot see where the default settings from .mocharc.cjs are actually used. @OrKoN maybe you have a pointer or idea? |
There is .mocharc.cjs and test/src/mocha-utils.ts now. Could you see if this still reproduces? I have been running Firefox tests for refactoring recently and have not noticed anything unusual. |
I actually miss the connection between defined constants in the |
@whimboo I believe the file is imported by mocha via yargs package directly and the value of |
i.e., I don't think it's used for the browser setup in any way. It's only used to configure Mocha: a test would be considered timed out if it does not resolve within 25 sec. |
Ok, so maybe that was an issue with the former |
When running the Puppeteer unit tests we currently have setup a timeout of 25s when connecting to Firefox. Sadly these values are not taking into account by mocha-utils.
As result some of the tests in browser.spec.ts are failing because these depend on a non set custom timeout value from the config.
@mathiasbynens or @jackfranklin is that something you could fix? I would kinda appreciate that. I don't see a reason why the default config values shouldn't be used here. Thanks!
The text was updated successfully, but these errors were encountered: