收口轻量支付弹窗与个人中心图标按钮
UnifiedModal 新增无头部模式并补齐对应可访问性测试 RpgEntryHomeView 的支付结果提示、支付确认遮罩与个人中心顶栏图标按钮改用共享组件 更新 PlatformUiKit 收口计划与 .hermes 决策记录
This commit is contained in:
@@ -2903,12 +2903,20 @@ test('mobile profile page matches the reference layout sections', async () => {
|
||||
|
||||
const topbar = container.querySelector('.platform-mobile-topbar');
|
||||
expect(topbar).toBeTruthy();
|
||||
expect(
|
||||
within(topbar as HTMLElement).getByRole('button', { name: '扫码' }),
|
||||
).toBeTruthy();
|
||||
expect(
|
||||
within(topbar as HTMLElement).getByRole('button', { name: '打开设置' }),
|
||||
).toBeTruthy();
|
||||
const scanButton = within(topbar as HTMLElement).getByRole('button', {
|
||||
name: '扫码',
|
||||
});
|
||||
const settingsButton = within(topbar as HTMLElement).getByRole('button', {
|
||||
name: '打开设置',
|
||||
});
|
||||
expect(scanButton).toBeTruthy();
|
||||
expect(settingsButton).toBeTruthy();
|
||||
expect(scanButton.className).toContain('platform-icon-button');
|
||||
expect(scanButton.className).toContain('platform-profile-header__icon-button');
|
||||
expect(settingsButton.className).toContain('platform-icon-button');
|
||||
expect(settingsButton.className).toContain(
|
||||
'platform-profile-header__icon-button',
|
||||
);
|
||||
expect(
|
||||
within(topbar as HTMLElement).queryByRole('button', {
|
||||
name: /充值/u,
|
||||
|
||||
Reference in New Issue
Block a user