-
Notifications
You must be signed in to change notification settings - Fork 4k
reset title on transitioning to isShowingWithoutId #5291
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
reset title on transitioning to isShowingWithoutId #5291
Conversation
|
Code LG but it is tough to think about all the implications. could you test with selenium integration test? Like load app, change project title, file -> new, check project title? Could you put together a list of actions we should make sure to test that might intersect with this, like importing a file when showing with ID and when showi without Id? |
|
Things we'd test, ideally:
Unfortunately, I don't know how we can test the file-> load functionality automatically, but we can test the file->new stuff! I added a test to do what you described:
...and confirmed that the current (before this PR) code fails it, and this PR's code passes. |
paulkaplan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for adding that test
#5168 was originally intended to resolve #3433 and scratchfoundation/scratch-desktop#71 , but then it was narrowed in scope to a general refactor of project title handling.
This change should resolve #3433 and scratchfoundation/scratch-desktop#71 .
Proposed Changes
When project state transitions into
isShowingWithoutIdbeing true, set the project title to the default title, and call GUI's owner'sonUpdateProjectTitlefunction.Reason for Changes
In standalone and desktop modes, File->New was not resetting title.
Test Coverage
We don't have good testing for this functionality yet. What would it look like?