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:
@@ -28,6 +28,12 @@ test("unknown — muted, текст «unknown»", () => {
|
||||
expect(screen.getByTestId("status-dot")).toHaveStyle({ background: "var(--diff-readonly)" })
|
||||
})
|
||||
|
||||
test("no_template — muted, текст «без шаблона»", () => {
|
||||
render(<StatusBadge status="no_template" />)
|
||||
expect(screen.getByText("без шаблона")).toBeInTheDocument()
|
||||
expect(screen.getByTestId("status-dot")).toHaveStyle({ background: "var(--diff-readonly)" })
|
||||
})
|
||||
|
||||
test("отсутствие статуса трактуется как unknown", () => {
|
||||
render(<StatusBadge />)
|
||||
expect(screen.getByText("unknown")).toBeInTheDocument()
|
||||
|
||||
Reference in New Issue
Block a user