修复预览权限拒绝测试竞态
为自动预览权限检查断言增加 2500 毫秒等待预算 保持权限拒绝文案与禁止启动预览断言不变
This commit is contained in:
@@ -7302,11 +7302,14 @@ export function registerProjectSupervisorSurfaceTests() {
|
||||
await Promise.resolve();
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
expect(within(surface).getByLabelText('最新状态').textContent).toContain(
|
||||
'项目权限策略拒绝执行:preview.start',
|
||||
);
|
||||
});
|
||||
await waitFor(
|
||||
() => {
|
||||
expect(within(surface).getByLabelText('最新状态').textContent).toContain(
|
||||
'项目权限策略拒绝执行:preview.start',
|
||||
);
|
||||
},
|
||||
{ timeout: 2500 },
|
||||
);
|
||||
expect(
|
||||
invoke.mock.calls.filter(
|
||||
([command]) => command === 'start_local_game_preview',
|
||||
|
||||
Reference in New Issue
Block a user