Closed Nancy-Salpepi closed 2 years ago
I can't reproduce this on master. I believe this is a great example of how https://github.com/phetsims/axon/issues/409 is saving us time in state setting. Tagging @samreid here (yay!). The lockedProperty for the ratio can change the enabledRangeProperty in a listener, and the value of it is checked on in the tupleProperty listener.
@Nancy-Salpepi can you please confirm fixed on master and feel free to close.
Yes! Looks good @zepumph! Closing.
Sorry @zepumph. I need to reopen this. I just tried it in the State wrapper on master and I get an "assertion failed" error when setting the state a second time with Ratio Lock on.
Steps:
Thanks! This is caused by an assertion that is helpful during normal sim usage, but will trigger incorrectly during state set. Can you please confirm things are fixed now and feel free to close.
Looks good is studio and state. Closing.
Test device MacBook Air m1 chip
Operating System macOS 12.5.1
Browser Safari 15.6.1
Problem description For https://github.com/phetsims/qa/issues/831, in the Studio wrapper on the Create Screen: Creating my own challenge and then locking the ratio will result in an incorrect state in the standard PhEt-iO wrapper. The hands will be in different positions and the checkbox will not be checked.
Steps to reproduce
**If you don't change the challenge ratio in the combo box (skip step 2) and just check the Ratio Lock checkbox--the sim launches in the correct state.
Visuals
https://user-images.githubusercontent.com/87318828/188722680-b64607a4-e854-47b8-a517-8ecbbf08bcb0.mp4