-
Notifications
You must be signed in to change notification settings - Fork 55
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
Rename lists to views #1554
Rename lists to views #1554
Conversation
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.
The changes to the makeMessages()
prefix looks good to me, but I don't understand why we would need to change the test. They should be unrelated, and to me the test looked right before (using "list"). If that test failed, I believe that it's either flaky (retry it) or the code it's testing is wrong (fix it).
@@ -78,7 +78,7 @@ test.describe('View detail page', () => { | |||
expect(columnPostLogs).toHaveLength(2); | |||
|
|||
// Expect that correctly localised strings sent when posting | |||
expect(viewPostLogs[0].data?.title).toEqual('New list'); | |||
expect(viewPostLogs[0].data?.title).toEqual('New View'); |
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.
This should not have to change. The correct text to use for a newly created list is "New list". Why did this change?
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.
The test failed there and result said it was expecing to have New list
but the result was New View
so I fixed it to New View
@richardolsson
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.
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.
Should I fix it as before and retry the test?
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.
I'm not sure why I didn't already review this, because it looks fine and simple!
Description
This PR fixes a bug where it breaks localization in view
Screenshots
Changes
lists
toviews
Notes to reviewer
Related issues
Undocumented