You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the test case name in Playwright contains Japanese and exceeds 255 bytes, an error occurs in CI.
error example
Error: ENAMETOOLONG: name too long, open '/home/runner/work/foo-app/foo-app/frontend/apps/screen/test-results/chromatic-archives/archive/pages-foopage-components-foopanel-foomodal-foomodal-foomodal-createerror-ああああ-title-has-260-ああああ-exactly-i-know-ああああ-i-counted-and-that-is-too-big-for-a-file-sysfbe5.w1280h720.snapshot.json'
Error: ENAMETOOLONG: name too long, open '/home/runner/work/foo-app/foo-app/frontend/apps/screen/test-results/chromatic-archives/archive/pages-foopage-components-foopanel-foomodal-foomodal-foomodal-createerror-ああああ-title-has-260-ああああ-exactly-i-know-ああああ-i-counted-and-that-is-too-big-for-a-file-sysfbe5.w1280h720.snapshot.json'
Expected behavior
I want the string to be truncated if it exceeds 255 bytes.
Describe the bug
If the test case name in Playwright contains Japanese and exceeds 255 bytes, an error occurs in CI.
error example
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I want the string to be truncated if it exceeds 255 bytes.
Additional context
Please consider the byte overflow in the truncateFileName function.
https://github.com/chromaui/chromatic-e2e/pull/175/files#diff-f771838241ca868867569179ce55aec3a3aa5170e75c1f743947132a9a1d6f18R67-R86
The text was updated successfully, but these errors were encountered: