-
Notifications
You must be signed in to change notification settings - Fork 4
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
PhET-iO API compatibility tests fail on non-puppeteer browsers #200
Comments
A productive conversation with @jonathanolson today helped me see that this isn't about the testing side of things (like "dont test api comparison on firefox"), but instead about the comparison test. Why is it so fragile to be browser-specific? Let's keep cracking at that, but first I will confirm that the above fixed the molecule shapes issue on ct. |
I had another good talk with @jonathanolson and @samreid. To come back to:
|
Alright. The above commit is working well for our current cases. I think that https://github.com/phetsims/phet-io/issues/1951 should stay open because it is likely to run into trouble in the future. For example, with this patch (changes text size everywhere), we see that Keplers Laws has an API regression based on the initial state of some positions. No matter. The work of this issue (making CT pass right now in firefox), has been solved. Closing. Subject: [PATCH] update TODO, https://github.com/phetsims/scenery-phet/issues/815
---
Index: js/nodes/Text.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/nodes/Text.ts b/js/nodes/Text.ts
--- a/js/nodes/Text.ts (revision 618d3d782735ae81dcb6f28664b2fb40312c3eb7)
+++ b/js/nodes/Text.ts (date 1705965907500)
@@ -383,6 +383,7 @@
if ( this.hasStroke() ) {
selfBounds.dilate( this.getLineWidth() / 2 );
}
+ selfBounds.dilate( 5 );
const changed = !selfBounds.equals( this.selfBoundsProperty._value );
if ( changed ) { |
This is because small things like pixel drawing may change an initial state positionProperty. For example, phetsims/gravity-and-orbits#486. This was caused by turning firefox testing back on in #188.
The text was updated successfully, but these errors were encountered: