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:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user