You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to setup 'skip-js-error' option only for specified pages. #2775
changed the title [-]Allow to skip js error only for specified pages[/-][+]Allow to setup 'skip-js-error' option only for specified pages.[/+]on Aug 27, 2018
Perhaps instead of at the page level it could be done using the test controller: t.ignoreJSErrors(true / false)
Reacted by Kai Kulju, JWvP, Ed Schiebel, Bernhard Häussner, Rosmarie Maurer-Wysseier, Michał Perłakowski, Norbert Sienkiewicz, Rob Cooper, amal-architrave, Richard Hendricksen and 1 more
Yes it seems to me this comes up somewhat regularly (#2033, #3747). In our case there is some ad-script on a 3rd party page that throws an error. And this means we have to set --skip-js-error for all tests. This is really sad, since:
we have to hope that errors get caught still by also breaking functionality
we have one less incentive for developers to handle errors properly
Reacted by Michael Dell, bart.zielonka, Andrew, Paweł Maniecki and Barking Timber
This would be great to be able to overwrite the default config value within a particular test - we have issues loading certain external js files related to analytics within some pages owned by other teams which causes problems when doing a smoke test of our micro frontend.
We are also running into this with third party sites. It would be nice to set skipjserrors = true via the controller in a step in a test. Right now, it's just a global setting.
Same here, we have a specific test that throws an error which we have no control to (external script), now we need skip all js errors for all our tests. Would be really great if we could enable this option only on one test!
Would really appreciate this as well. My hesitancy in skipping javascript errors globally is that my tests would miss something I need to see. Being able to set this by page or even by individual test would be incredibly helpful. Thank you!!
Thank you for your opinion. This feature has a high priority for us, and it is in our roadmap. You can use a workaround until this feature is implemented.
Activity
[-]Allow to skip js error for specified pages[/-][+]Allow to skip js error only for specified pages[/+][-]Allow to skip js error only for specified pages[/-][+]Allow to setup 'skip-js-error' option only for specified pages.[/+]ljowen commentedon Aug 28, 2018
Perhaps instead of at the page level it could be done using the test controller:
t.ignoreJSErrors(true / false)bxt commentedon Jul 24, 2019
Yes it seems to me this comes up somewhat regularly (#2033, #3747). In our case there is some ad-script on a 3rd party page that throws an error. And this means we have to set
--skip-js-errorfor all tests. This is really sad, since:aleks-pro commentedon Jul 25, 2019
Hello @bxt,
Thank you for sharing your scenario with us. We will take it into account when we are ready to implement this feature.
bartzielonka commentedon Aug 22, 2019
Exactly the same problem as @bxt
Other than that having many small wholes in TC (new tab opening, visibility checking...) because of that not able to write stable and efficient tests.
23 remaining items
rushby commentedon May 4, 2021
This would be great to be able to overwrite the default config value within a particular test - we have issues loading certain external js files related to analytics within some pages owned by other teams which causes problems when doing a smoke test of our micro frontend.
miherlosev commentedon May 5, 2021
Hi @rushby
Thank you for sharing this use case. You can use a workaround until this feature is implemented.
jbradenclickfunnels commentedon Jan 17, 2022
Hello,
We are also running into this with third party sites. It would be nice to set skipjserrors = true via the controller in a step in a test. Right now, it's just a global setting.
knodschi commentedon Feb 10, 2022
Same here, we have a specific test that throws an error which we have no control to (external script), now we need skip all js errors for all our tests. Would be really great if we could enable this option only on one test!
jmosley5 commentedon Feb 11, 2022
Would really appreciate this as well. My hesitancy in skipping javascript errors globally is that my tests would miss something I need to see. Being able to set this by page or even by individual test would be incredibly helpful. Thank you!!
miherlosev commentedon Feb 28, 2022
Hi @jmosley5,
Thank you for your opinion. This feature has a high priority for us, and it is in our roadmap. You can use a workaround until this feature is implemented.
github-actions commentedon Aug 25, 2022
Release v2.0.0-rc.1 addresses this.
github-actions commentedon Aug 25, 2022
Release v2.0.0-rc.1 addresses this.
Add API for more flexible setting of "skip-js-error" option(closes De…