feat(platform): harden telemetry pipeline and unify Semi UI workspaces
This commit is contained in:
@@ -19,8 +19,8 @@ describe('route recovery boundary', () => {
|
||||
render(<PlatformErrorBoundary><BrokenShell /></PlatformErrorBoundary>);
|
||||
|
||||
expect(screen.getByRole('alert')).toHaveTextContent('平台外壳运行异常');
|
||||
expect(screen.getByRole('button', { name: /重新加载平台/ })).toBeInTheDocument();
|
||||
expect(screen.getByRole('link', { name: /返回全局监控/ })).toHaveAttribute('href', '/monitor');
|
||||
expect(screen.getByRole('button', { name: /重新加载平台/ })).toHaveClass('semi-button');
|
||||
expect(screen.getByRole('button', { name: /返回全局监控/ })).toHaveClass('semi-button');
|
||||
});
|
||||
|
||||
it('recognizes deployment-related lazy chunk failures', () => {
|
||||
@@ -35,8 +35,8 @@ describe('route recovery boundary', () => {
|
||||
const BrokenPage = () => { throw new Error('render exploded'); };
|
||||
render(<MemoryRouter future={ROUTER_FUTURE} initialEntries={['/history']}><RoutePage page={BrokenPage} label="历史数据" /></MemoryRouter>);
|
||||
expect(screen.getByRole('alert')).toHaveTextContent('当前模块暂时无法显示');
|
||||
expect(screen.getByRole('button', { name: /刷新当前页面/ })).toBeInTheDocument();
|
||||
expect(screen.getByRole('link', { name: /返回全局监控/ })).toHaveAttribute('href', '/monitor');
|
||||
expect(screen.getByRole('button', { name: /刷新当前页面/ })).toHaveClass('semi-button');
|
||||
expect(screen.getByRole('button', { name: /返回全局监控/ })).toHaveClass('semi-button');
|
||||
});
|
||||
|
||||
it('shows a deployment recovery page when an automatic chunk reload already ran', () => {
|
||||
|
||||
Reference in New Issue
Block a user