feat(web): view zone without template, snapshot button, no-template status, drop delete

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwxdSt4reTm7Dj1oxRvpP3
This commit is contained in:
2026-07-05 12:19:50 +07:00
co-authored by Claude Opus 4.8
parent 5662334799
commit c2832348f8
8 changed files with 217 additions and 45 deletions
+17 -1
View File
@@ -114,6 +114,22 @@ test("drift-badge отражает lastCheckStatus каждого домена",
await screen.findByText("example.com.")
expect(screen.getByText("drift")).toBeInTheDocument()
expect(screen.getByText("in sync")).toBeInTheDocument()
})
test("домен без templateId показывает «без шаблона» вместо lastCheckStatus", async () => {
renderPage()
await screen.findByText("example.com.")
expect(screen.getByText("без шаблона")).toBeInTheDocument()
expect(screen.queryByText("drift")).not.toBeInTheDocument()
})
test("кнопки удаления домена нет", async () => {
renderPage()
await screen.findByText("example.com.")
expect(screen.queryByRole("button", { name: /удалить/i })).not.toBeInTheDocument()
})