收口玩过作品面板弹窗壳层
RpgEntryHomeView 的 ProfilePlayedWorksModal 改用 UnifiedModal 并保留可继续与玩过双分区语义 更新玩过作品面板与 FlowShell 交互测试的具名 dialog 断言 同步 PlatformUiKit 收口计划与 .hermes 决策记录
This commit is contained in:
@@ -2790,9 +2790,11 @@ test('profile played modal summary and work type use platform pill badges', asyn
|
||||
|
||||
await user.click(screen.getByRole('button', { name: /已玩游戏数量/u }));
|
||||
|
||||
const playedModal = screen
|
||||
.getByText('潮雾列岛')
|
||||
.closest('.fixed') as HTMLElement;
|
||||
const playedModal = await screen.findByRole('dialog', { name: '玩过' });
|
||||
|
||||
expect(
|
||||
within(playedModal).getByRole('button', { name: '关闭玩过' }),
|
||||
).toBeTruthy();
|
||||
const playedSectionLabel = within(playedModal)
|
||||
.getAllByText('玩过')
|
||||
.find((element) => element.className.includes('tracking-[0.18em]'));
|
||||
|
||||
Reference in New Issue
Block a user