-
Notifications
You must be signed in to change notification settings - Fork 350
Closed
Labels
Description
Actual Behavior
Recent changes in scratch-render are causing this test to fail in scratch-gui:
PASS test/integration/blocks.test.js (37.63s)
FAIL test/integration/costumes.test.js (62.828s)
● Working with costumes › Adding an svg from file
TimeoutError: findByXpath timed out for path: //body//*[@id='react-tabs-3']//*[contains(text(), '100 x 100')]
Wait timed out after 20007ms
See also scratchfoundation/scratch-gui#7406
Running the test non-headless, it looks like the costume tab is reporting 0x0 for the size of the costume, where it should be 100x100. Interacting with the paint editor causes the costume size to update, so it's probably just an order-of-operations problem where the size is reported out before it gets properly initialized/updated.
It seems likely that this was introduced with #745 but it could have been anything merged in June 2021.
Steps to Reproduce
- Check out
scratch-gui
and update itsscratch-render
dependency to currentscratch-render/develop
- Or, check out
scratch-gui
branchrenovate/scratch-render-0.x
- Or, check out
- Run integration tests