继续收口编辑器空态与暗色动作按钮
视觉小说实体列表空态复用 PlatformEmptyState 角色素材工作室局部按钮改为委托 PlatformActionButton RPG大编辑器局部按钮改为委托 PlatformActionButton 更新 PlatformUiKit 收口文档与团队决策记录
This commit is contained in:
@@ -113,7 +113,7 @@ test('visual novel entity list items use interactive PlatformSubpanel shells', a
|
||||
expect(characterCard.className).toContain('rounded-[1.25rem]');
|
||||
});
|
||||
|
||||
test('visual novel empty entity list uses PlatformSubpanel shell', async () => {
|
||||
test('visual novel empty entity list uses PlatformEmptyState shell', async () => {
|
||||
const user = userEvent.setup();
|
||||
const emptyCharacterDraft = {
|
||||
...mockVisualNovelDraft,
|
||||
@@ -126,11 +126,17 @@ test('visual novel empty entity list uses PlatformSubpanel shell', async () => {
|
||||
|
||||
await user.click(screen.getByRole('button', { name: '角色' }));
|
||||
|
||||
const emptyPanel = screen.getByText('暂无角色').closest('.platform-subpanel');
|
||||
const emptyPanel = screen
|
||||
.getByText('暂无角色')
|
||||
.closest('.platform-empty-state');
|
||||
|
||||
expect(emptyPanel?.className).toContain('platform-subpanel');
|
||||
expect(emptyPanel?.className).toContain('platform-empty-state');
|
||||
expect(emptyPanel?.className).toContain('bg-white/74');
|
||||
expect(emptyPanel?.className).toContain('rounded-[1.25rem]');
|
||||
expect(emptyPanel?.className).toContain('min-h-32');
|
||||
expect(emptyPanel?.className).toContain(
|
||||
'text-[var(--platform-text-soft)]',
|
||||
);
|
||||
});
|
||||
|
||||
test('visual novel result opens complex editors as a dialog', async () => {
|
||||
|
||||
Reference in New Issue
Block a user