feat: 移动端底部导航备忘录入口改为专注
This commit is contained in:
@@ -160,7 +160,7 @@ test('all bottom destinations expose one active page and desktop layout stays un
|
||||
const navigation = page.getByRole('navigation', { name: '主要导航' })
|
||||
const mobile = (await page.viewportSize())!.width <= 930
|
||||
if (mobile) {
|
||||
for (const label of ['今天', '习惯', '倒数日', '备忘录', '日历订阅']) {
|
||||
for (const label of ['今天', '习惯', '倒数日', '专注', '日历订阅']) {
|
||||
await bottomTab(page, label).click()
|
||||
await expect(navigation.locator('[aria-current="page"]')).toHaveCount(1)
|
||||
await expect(bottomTab(page, label)).toHaveAttribute('aria-current', 'page')
|
||||
|
||||
Reference in New Issue
Block a user