diff --git a/web/e2e/reconnect.spec.js b/web/e2e/reconnect.spec.js index 4ebb41d..acff056 100644 --- a/web/e2e/reconnect.spec.js +++ b/web/e2e/reconnect.spec.js @@ -139,10 +139,9 @@ test.describe('losing the connection', () => { // a word it cannot carry. await expect(board(page).submit).toBeDisabled(); await expect(board(page).input).toHaveAttribute('aria-disabled', 'true'); - await expect(board(page).input).toHaveAttribute( - 'placeholder', - 'Mất kết nối, đang thử lại…' - ); + // Its own short version of the badge's line: the field shares a row + // with the send button, and a sentence in there is cut off by it. + await expect(board(page).input).toHaveAttribute('placeholder', 'Mất kết nối…'); // And it comes back on its own once the connection does. socket.restore(); diff --git a/web/src/lib/components/WordInput.svelte b/web/src/lib/components/WordInput.svelte index e158304..e3a4c92 100644 --- a/web/src/lib/components/WordInput.svelte +++ b/web/src/lib/components/WordInput.svelte @@ -1,5 +1,5 @@