summaryrefslogtreecommitdiff
path: root/ui/tests
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-05-22 00:23:14 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-05-22 00:23:14 -0400
commit53e13f79842f1b01c8ded526b2ba8492e489e86a (patch)
tree3f0e6ed1ccca1984f1397cec70955594bb253668 /ui/tests
parent07e5f260ad4c88879f27c3fc8742155f872e8994 (diff)
Suppress testing of the MessageInput's, uh, text input.
We … can't test this, I think, because of a bug in `user-event`. Maybe there's an alternative that directly manipulates the DOM, but I'd prefer not to do that.
Diffstat (limited to 'ui/tests')
-rw-r--r--ui/tests/lib/components/MessageInput.svelte.test.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/tests/lib/components/MessageInput.svelte.test.js b/ui/tests/lib/components/MessageInput.svelte.test.js
index 508fb43..c9aaa88 100644
--- a/ui/tests/lib/components/MessageInput.svelte.test.js
+++ b/ui/tests/lib/components/MessageInput.svelte.test.js
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/svelte';
import userEvent from '@testing-library/user-event';
-import { beforeEach, expect, test, describe, it, vi } from 'vitest';
+import { beforeEach, expect, describe, it, vi } from 'vitest';
import MessageInput from '$lib/components/MessageInput.svelte';
const user = userEvent.setup();
@@ -17,7 +17,12 @@ describe('CreateChannelForm', async () => {
});
describe('sends a message', async () => {
- it('with non-empty content', async () => {
+ // Skipped as `user-event` can't actually type into a div with
+ // `contenteditable="plaintext-only"` at this time. This capability is
+ // pretty core, though; we'll notice (immediately) if it breaks.
+ //
+ // See <https://github.com/testing-library/user-event/issues/1197>.
+ it.skip('with non-empty content', async () => {
const input = screen.getByRole('textbox');
await user.type(input, 'a happy surprise');