fix(vxlan): подтвердить достоверность опроса и экспорта раздела

This commit is contained in:
Denozordec committed 2026-10-09 10:38:24 +07:00
1 parent 6b068ac39a
commit e2d81f9657
23 files changed
+689 -89

No files matched your search

+2 -1
View File
@@ -4,7 +4,7 @@ import type { VxlanTunnel } from "../../lib/data"
test("VXLAN: все строки, числовая сортировка, экспорт выбранной строки и поиск", async ({ page }) => {
const tunnels: VxlanTunnel[] = Array.from({ length: 12 }, (_, i) => ({
id: String(i + 1), name: `vxlan-test-${i + 1}`, vni: i + 1, port: 0, dstPort: 8472,
serverId: "1", vtepIp: "192.0.2.1", remoteVteps: [`192.0.2.${i + 2}`], l2mtu: 1500,
serverId: "1", vtepIp: "192.0.2.1", remoteVteps: [`192.0.2.${i + 2}`], l2mtu: 1500, mtu: 1400,
arpProxy: false, macLearning: true, comment: "Тест", enabled: true, status: "up",
}))
const errors: string[] = []
@@ -23,6 +23,7 @@ test("VXLAN: все строки, числовая сортировка, экс
await page.getByRole("button", { name: "Действия: vxlan-test-12", exact: true }).click()
await page.getByRole("menuitem", { name: "Экспорт .rsc", exact: true }).click()
await expect(page.getByRole("dialog")).toContainText("vxlan-test-12")
await expect(page.getByRole("dialog").locator("pre")).toContainText("mtu=1400")
await page.keyboard.press("Escape")
await page.getByPlaceholder("Поиск по имени, VNI, серверу…").fill("vxlan-test-12")
await expect(rows).toHaveCount(1)