feat(mcp): добавить веб-раздел MCP, клиентский API и e2e-тесты
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
18c0a52171
commit
6cb550e179
77 files changed
+4929
-209
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { expect, type Page } from "@playwright/test"
|
||||
|
||||
/** Keep the old request in flight while switching settings in the same app. */
|
||||
export async function openSettings(page: Page) {
|
||||
// The open confirmation owns focus until the request settles. Browser
|
||||
// Back can navigate while the test still holds that same response.
|
||||
if (await page.getByRole("alertdialog").or(page.getByRole("dialog")).first().isVisible()) {
|
||||
await page.goBack()
|
||||
} else {
|
||||
await page.locator('[data-slot="sidebar-footer"]').getByRole("button").click()
|
||||
await page.getByRole("menuitem", { name: "Настройки", exact: true }).click()
|
||||
}
|
||||
await expect(page).toHaveURL(/\/settings(?:[/?#]|$)/)
|
||||
}
|
||||
Reference in new issue
Block a user