mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
fix(voice): say the attachment limit is 10 KB in total
The attach menu promised up to 10 KB per file, but the attachments share one 10 KB budget, so two 6 KB files were refused. The hint now says the limit covers them all, in every locale.
This commit is contained in:
1 parent
829db19f60
commit
51b561815c
14 files changed
+26
-15
No files matched your search
@@ -108,6 +108,17 @@ test('attachments over 10 KB together are refused', async (t) => {
|
||||
]);
|
||||
});
|
||||
|
||||
test('the attach menu states the 10 KB limit for all attachments together', async (t) => {
|
||||
const { pinia, settle } = mountVoiceView(t);
|
||||
const ui = createTestVoiceUi({ panel: true, pinia });
|
||||
attachments(t, { ui });
|
||||
ui.update('chat', { open: true });
|
||||
await settle();
|
||||
const hint = $('#gev-chat-attach-menu > p').textContent;
|
||||
assert.match(hint, /up to 10 KB in total\./);
|
||||
assert.doesNotMatch(hint, /each/);
|
||||
});
|
||||
|
||||
test('Escape closes the attach menu and returns to the Attach button', async (t) => {
|
||||
const { pinia, settle } = mountVoiceView(t);
|
||||
const ui = createTestVoiceUi({ panel: true, pinia });
|
||||
|
||||
Reference in new issue
Block a user