-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[test] Skip JSDOM in style related conformance tests #24668
[test] Skip JSDOM in style related conformance tests #24668
Conversation
mnajdova
commented
Jan 28, 2021
- I have followed (at least) the PR section of the contributing guide.
Why do we need this change? |
Testing computed styles is unreliable in JSDOM. See #24661 (comment) and implementation notes of |
Also: I would hope that these are not tests you need to work with very often. That would kind of indicate that they shouldn't be part of a conformance test suite. I can improve documentation for @oliviertassinari What you want can only be achieved by having fewer components. But that's not what you've been pushing for. You can either implement more components or have a smaller test suite. Having both results in a lower test confidence i.e. lower quality components. So if you want more components and keep the test confidence you have to adjust how you work with the test suite. I haven't seen that you've been willing to do that. It may be just an API issue but if you're just ignoring me I can't help you. I need explicit feedback to be able to improve our test workflow. You just coding away and complaining every time that "tests are slow" does not help anyone. Not me in speeding up the tests and not Marija who's implementing the work you've envisioned. |
Ok, at least we are aware of the tradeoff, we can always course correct in the future if it becomes an issue :).
Yeah, it's very possible, I think that it's only now, because we work on the migration that we spend time on them. I have been helping with the migration of 10 components to emotion last weekend, this test has been a friction point, even for the contributors.
@eps1lon Sure! From a high-level perspective, I think that we can leverage the tests to solve two problems:
Some might see other benefits like not introducing regressions for developers using the library or working in TDD improving the quality of the implementation. I don't really buy into these arguments in our context (e.g. we don't need 99.99% availability, and developers can revert version, nor all upgrade at once when we release) but I can respect them. Over the last few weeks, I have personally experienced the following pain:
I would love to hear Marija's frustration too. Maybe we should allocate a $1,000/month budget to increase the hardware resources available in the CI cc @mbrookes. |