拆分规则阻断与搜索未命中状态弹窗
CustomWorldEntityCatalog 改用共享状态弹窗承接 minimum-playable 提示 PlatformEntryFlowShellImpl 将公开编号搜索未命中分支改用共享状态弹窗 保留命中用户摘要弹层布局并补充相关测试与文档记录
This commit is contained in:
@@ -1257,7 +1257,7 @@ test('可扮演角色删除改用统一确认弹窗', async () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('最后一个可扮演角色不可删除时使用统一提示弹窗', async () => {
|
||||
test('最后一个可扮演角色不可删除时使用平台状态弹窗', async () => {
|
||||
const user = userEvent.setup();
|
||||
const handleProfileChange = vi.fn();
|
||||
|
||||
@@ -1283,6 +1283,9 @@ test('最后一个可扮演角色不可删除时使用统一提示弹窗', async
|
||||
),
|
||||
).toBeTruthy();
|
||||
|
||||
fireEvent.click(dialog.parentElement as HTMLElement);
|
||||
expect(screen.getByRole('dialog', { name: '无法删除' })).toBeTruthy();
|
||||
|
||||
await user.click(within(dialog).getByRole('button', { name: '知道了' }));
|
||||
|
||||
expect(handleProfileChange).not.toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user