-
-
Notifications
You must be signed in to change notification settings - Fork 833
Update tests to ensure file size unit has been fixed #10568
Conversation
Signed-off-by: Suguru Hirahara <[email protected]>
uploadFile("cypress/fixtures/matrix-org-client-versions.json"); | ||
|
||
cy.get(".mx_FilePanel .mx_EventTile").within(() => { | ||
// Assert that the file size is displayed in kilobyte, not kibibyte (kB) |
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.
// Assert that the file size is displayed in kilobyte, not kibibyte (kB) | |
// Assert that the file size is displayed in kibibytes (1024 bytes), not kilobytes (1000 bytes) |
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.
possibly the other references to kilobytes in this PR should be changed to kibibytes too, though it's not too important because "kilobyte" can mean either 1024 bytes or 1000 bytes.
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 understood. I have not known kilobyte could mean both.. 😲
Co-authored-by: Richard van der Hoff <[email protected]>
Signed-off-by: Suguru Hirahara <[email protected]>
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.
thanks!
@richvdh Thanks for the review! |
This PR is a follow-up to #10561 in order to ensure that file size unit used on a file tile or audio player is kibibytes (1024 bytes), not kilobytes (1000 bytes).
type: task
Signed-off-by: Suguru Hirahara [email protected]
Checklist
This change is marked as an internal change (Task), so will not be included in the changelog.