test(milestone): [milestone] Fix test cases (#1447)

This commit is contained in:
chenxi-20 2024-03-01 16:30:24 +08:00 committed by GitHub
parent fadcf72910
commit 57160402fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ test('序号显示', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).not.toBeNull())
await page.goto('milestone#show-number')
const button = page.getByRole('button').filter({ hasText: '设置 show-number 值为false' })
const button = page.getByRole('button').filter({ hasText: '设置 show-number 值为 false' })
const nodes = page.locator('.tiny-milestone__node')
const nodeIcons = page.locator('.tiny-milestone__icon')
const nodeLines = page.locator('.tiny-milestone__line')

View File

@ -4,7 +4,7 @@ test('实心显示', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).not.toBeNull())
await page.goto('milestone#solid-style')
const button = page.getByRole('button').filter({ hasText: '设置 solid 值为true' })
const button = page.getByRole('button').filter({ hasText: '设置 solid 值为 true' })
const nodes = page.locator('.tiny-milestone__node')
const nodeIcons = page.locator('.tiny-milestone__icon')
const nodeLines = page.locator('.tiny-milestone__line')