在 Makelore 构建并预检静态发布产物
This commit is contained in:
@@ -79,11 +79,11 @@ describe('ProjectPublishAction', () => {
|
||||
render(<ProjectPublishAction project={project} projectType="mini_game" />);
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: '一键提交审核' }));
|
||||
expect(screen.getByRole('button', { name: '正在检查并提交…' })).toBeDisabled();
|
||||
expect(screen.getByRole('button', { name: '正在生成本次构建结果…' })).toBeDisabled();
|
||||
await flushSubmission();
|
||||
|
||||
expect(screen.getByTestId('project-publish-status')).toHaveTextContent(
|
||||
'本地预览检查已完成,项目已上传,正在等待云端受控构建与平台校验。',
|
||||
'本次构建结果已通过本地预览检查并上传,正在等待平台校验。',
|
||||
);
|
||||
|
||||
expect(publishWorksProjectSourceMock).toHaveBeenCalledWith({
|
||||
@@ -120,8 +120,8 @@ describe('ProjectPublishAction', () => {
|
||||
await advancePoll();
|
||||
|
||||
const failure = screen.getByTestId('project-publish-failure');
|
||||
expect(failure).toHaveTextContent('自动打开作品时发现问题');
|
||||
expect(failure).toHaveTextContent('下一步:请让开发助手运行 npm run build');
|
||||
expect(failure).toHaveTextContent('旧版提交无法继续处理');
|
||||
expect(failure).toHaveTextContent('下一步:升级 Makelore 并重新提交');
|
||||
expect(failure).not.toHaveTextContent('BROWSER_SMOKE_FAILED');
|
||||
expect(failure).not.toHaveTextContent('Traceback');
|
||||
expect(failure).not.toHaveTextContent('/srv/private');
|
||||
|
||||
Reference in New Issue
Block a user