From e0b1b4e8ab7581f338184c900ca1a858526cf792 Mon Sep 17 00:00:00 2001 From: chenxi-20 <2465950588@qq.com> Date: Thu, 29 Feb 2024 00:14:18 -0800 Subject: [PATCH] test(milestone): [milestone] Fix test cases --- examples/sites/demos/pc/app/milestone/show-number.spec.ts | 2 +- examples/sites/demos/pc/app/milestone/solid-style.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sites/demos/pc/app/milestone/show-number.spec.ts b/examples/sites/demos/pc/app/milestone/show-number.spec.ts index f958f5eb59..be621ae792 100644 --- a/examples/sites/demos/pc/app/milestone/show-number.spec.ts +++ b/examples/sites/demos/pc/app/milestone/show-number.spec.ts @@ -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') diff --git a/examples/sites/demos/pc/app/milestone/solid-style.spec.ts b/examples/sites/demos/pc/app/milestone/solid-style.spec.ts index a311939e45..8a89682db9 100644 --- a/examples/sites/demos/pc/app/milestone/solid-style.spec.ts +++ b/examples/sites/demos/pc/app/milestone/solid-style.spec.ts @@ -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')