Continue chat messages after Tab-completing a mention

This commit is contained in:
coyotte508 2026-09-13 22:51:00 +02:00
commit e71774da04
4 changed files with 11 additions and 11 deletions

View file

@ -10,7 +10,7 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@boardgamers/protocol": "0.2.1",
"@boardgamers/protocol": "0.2.2",
"fuji-engine": "workspace:*"
},
"devDependencies": {

10
pnpm-lock.yaml generated
View file

@ -34,8 +34,8 @@ importers:
packages/viewer:
dependencies:
'@boardgamers/protocol':
specifier: 0.2.1
version: 0.2.1
specifier: 0.2.2
version: 0.2.2
fuji-engine:
specifier: workspace:*
version: link:../engine
@ -61,8 +61,8 @@ importers:
packages:
'@boardgamers/protocol@0.2.1':
resolution: {integrity: sha512-e114ohTXaZ1cHdzJs9kj+MkT1ciHGtcaqFherLVMFNrgvxLUGq8kZ8cCxsObXI4n0MGjzPU+Y/j+DAKD0yHoxw==}
'@boardgamers/protocol@0.2.2':
resolution: {integrity: sha512-5o5nPZW6CN6PysF0i90OR+B30djiFhAGutCZe5RKJV6h3RgqE36HA7l0pOpvhdHz8uYtqE0nmaPlc+2ZtYiM/A==}
'@jridgewell/gen-mapping@0.3.13':
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
@ -631,7 +631,7 @@ packages:
snapshots:
'@boardgamers/protocol@0.2.1':
'@boardgamers/protocol@0.2.2':
dependencies:
zod: 4.6.2

View file

@ -1,4 +1,4 @@
packages:
- packages/*
minimumReleaseAgeExclude:
- "@boardgamers/protocol@0.2.1"
- "@boardgamers/protocol@0.2.2"

View file

@ -62,11 +62,11 @@ for (const width of [390, 1400]) {
assert.equal(await suggestions.getByRole("button", { name: "@Full Name", exact: true }).count(), 0);
await p.evaluate(() => e.emit("player", { index: 0 }));
await p.getByRole("textbox", { name: "Chat message" }).fill("@F");
await p.getByRole("textbox", { name: "Chat message" }).press("Tab");
await p.getByRole("textbox", { name: "Chat message" }).pressSequentially("hello");
assert.equal(await p.getByRole("textbox", { name: "Chat message" }).inputValue(), '@"Full Name" hello');
await p.getByRole("textbox", { name: "Chat message" }).press("Enter");
assert.equal(await p.getByRole("textbox", { name: "Chat message" }).inputValue(), '@"Full Name" ');
await p.getByRole("textbox", { name: "Chat message" }).press("End");
await p.getByRole("textbox", { name: "Chat message" }).press("Enter");
assert.equal(await p.evaluate(() => sent[0].text), '@"Full Name"');
assert.equal(await p.evaluate(() => sent[0].text), '@"Full Name" hello');
assert.equal(await p.getByRole("link", { name: "Rules", exact: true }).getAttribute("href"), "https://example.com");
assert.equal(await p.locator("article script").count(), 0);
assert.equal(await p.getByText(/Waiting for Full Name to choose an injury/).count(), 1);