This commit is contained in:
07akioni
2026-07-27 12:58:20 +08:00
parent 3ee2982f85
commit 55fc87a7a0
10 changed files with 99 additions and 39 deletions
@@ -113,9 +113,11 @@ describe('tails', () => {
const errorView = render(<BashRow {...props(errorResult)} />)
expect(errorView.container.querySelector('[data-sample="bash-global"]')).not.toBeNull()
expect(errorView.container.querySelector('[data-state="error"]')).not.toBeNull()
expect(errorView.getByText('失败')).toBeTruthy()
errorView.unmount()
const stoppedView = render(<BashRow {...props(stoppedResult)} />)
expect(stoppedView.container.querySelector('[data-state="stopped"]')).not.toBeNull()
expect(stoppedView.getByText('已停止')).toBeTruthy()
})
})