kin/web/frontend/src/__tests__/deploy-config-clear-fields.test.ts

38 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-03-17 18:31:33 +02:00
/**
2026-03-18 15:39:54 +02:00
* KIN-INFRA-012 / KIN-UI-012: Регрессия формы deploy из SettingsView удалены
2026-03-17 18:31:33 +02:00
*
2026-03-18 15:39:54 +02:00
* saveDeployConfig и связанные deploy-поля перенесены в ProjectView Settings tab.
* SettingsView теперь только навигатор.
2026-03-17 18:31:33 +02:00
*
2026-03-18 15:39:54 +02:00
* Проверяет, что в SettingsView.vue отсутствуют удалённые формы.
2026-03-17 18:31:33 +02:00
*/
2026-03-18 15:39:54 +02:00
import { describe, it, expect } from 'vitest'
import { readFileSync } from 'fs'
import { resolve } from 'path'
2026-03-17 18:31:33 +02:00
2026-03-18 15:39:54 +02:00
describe('SettingsView.vue — формы deploy удалены (KIN-UI-012)', () => {
const filePath = resolve(__dirname, '../views/SettingsView.vue')
const content = readFileSync(filePath, 'utf-8')
2026-03-17 18:31:33 +02:00
2026-03-18 15:39:54 +02:00
it('не содержит saveDeployConfig (форма перенесена в ProjectView)', () => {
expect(content).not.toContain('saveDeployConfig')
2026-03-17 18:31:33 +02:00
})
2026-03-18 15:39:54 +02:00
it('не содержит deployHosts (реактивный ref удалён)', () => {
expect(content).not.toContain('deployHosts')
2026-03-17 18:31:33 +02:00
})
2026-03-18 15:39:54 +02:00
it('не содержит deploy_host input поле', () => {
expect(content).not.toContain('server host (e.g. vdp-prod)')
2026-03-17 18:31:33 +02:00
})
2026-03-18 15:39:54 +02:00
it('не содержит test_command input поле', () => {
expect(content).not.toContain('placeholder="make test"')
2026-03-17 18:31:33 +02:00
})
2026-03-18 15:39:54 +02:00
it('не содержит obsidian_vault_path input поле', () => {
expect(content).not.toContain('path/to/obsidian/vault')
2026-03-17 18:31:33 +02:00
})
})