|
|
@@ -62,7 +62,7 @@ describe('web e2e: settings modal and General preferences', () => {
|
|
|
expect(await trigger.getAttribute('aria-expanded')).toBe('true')
|
|
|
// General is active by default; Permission, Language and Appearance are functional.
|
|
|
expect(await dialog.getByRole('button', { name: '通用设置' }).getAttribute('aria-current')).toBe('true')
|
|
|
- await dialog.getByRole('button', { name: '可写入工作区' }).waitFor({ timeout: 10_000 })
|
|
|
+ await dialog.getByRole('button', { name: '工作区内修改' }).waitFor({ timeout: 10_000 })
|
|
|
await expect.poll(() => dialog.getByText('语言', { exact: true }).count(), { timeout: 5_000 }).toBe(1)
|
|
|
await expect.poll(() => dialog.getByText('外观', { exact: true }).count(), { timeout: 5_000 }).toBe(1)
|
|
|
const openDocument = dialog.getByRole('button', { name: '打开配置文件' })
|
|
|
@@ -150,7 +150,7 @@ describe('web e2e: settings modal and General preferences', () => {
|
|
|
await page.getByRole('button', { name: '设置', exact: true }).click()
|
|
|
const dialog = page.getByRole('dialog', { name: '设置' })
|
|
|
await dialog.waitFor({ timeout: 10_000 })
|
|
|
- const selector = dialog.getByRole('button', { name: '可写入工作区' })
|
|
|
+ const selector = dialog.getByRole('button', { name: '工作区内修改' })
|
|
|
await selector.waitFor({ timeout: 10_000 })
|
|
|
await expect.poll(() => selector.isEnabled(), { timeout: 5_000 }).toBe(true)
|
|
|
await selector.click()
|