fix(ui): keep the chat dock open across navigation
Clicking any navigation control counted as an outside click, so the dock collapsed on every route change and the conversation disappeared. Hide and Escape remain the only ways to collapse it. The e2e accessibility check referenced the removed outside-click launcher and the old Close chat label; both now use the dock's real controls.
This commit is contained in:
20 files changed
+124
-130
No files matched your search
@@ -40,7 +40,6 @@ module.exports = async ({ page, go, shot }) => {
|
||||
await page.getByRole('option', { name: 'Events', exact: true }).click();
|
||||
await page.waitForTimeout(300);
|
||||
assert.equal(await page.evaluate(() => document.activeElement?.id), 'main-content', 'palette navigation did not focus main');
|
||||
await page.getByRole('button', { name: 'Chat with Archie', exact: true }).click();
|
||||
const composer = page.getByRole('textbox', { name: 'Message Archie', exact: true });
|
||||
await composer.fill('Composition in progress');
|
||||
const sent = [];
|
||||
@@ -61,7 +60,7 @@ module.exports = async ({ page, go, shot }) => {
|
||||
assert.equal((await request).postDataJSON().text, 'Ordinary Enter submits');
|
||||
assert.equal(await composer.inputValue(), '');
|
||||
await shot('chat-composition');
|
||||
await page.getByRole('button', { name: 'Close chat', exact: true }).click();
|
||||
await page.getByRole('button', { name: 'Hide conversation', exact: true }).click();
|
||||
const tab = page.getByRole('tab', { name: /^Map/ });
|
||||
await tab.click();
|
||||
assert.ok(await tab.evaluate(el => el === document.activeElement), 'query-only navigation stole focus');
|
||||
|
||||
Reference in new issue
Block a user