17 lines
780 B
TypeScript
17 lines
780 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
import { describe, expect, it } from 'vitest'
|
|
import TeamFoundationApp from './TeamFoundationApp'
|
|
|
|
describe('TeamFoundationApp', () => {
|
|
it('exposes only the GLS public foundation workflow', () => {
|
|
render(<TeamFoundationApp />)
|
|
|
|
expect(screen.getByRole('heading', { name: 'GLS 系统架构' })).toBeInTheDocument()
|
|
expect(screen.getByText('GLS-SYS-ARCH-001')).toBeInTheDocument()
|
|
expect(screen.getByRole('list', { name: 'GLS 公共路径' })).toBeInTheDocument()
|
|
expect(screen.queryByText('心跳核心频道')).not.toBeInTheDocument()
|
|
expect(screen.queryByText('短剧视频 AI')).not.toBeInTheDocument()
|
|
expect(screen.queryByText('服务器与灯塔节点')).not.toBeInTheDocument()
|
|
})
|
|
})
|