Skip to content

Commit 92c2625

Browse files
committed
test: 修复测试用例报错
1 parent 14958c9 commit 92c2625

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/sites/demos/pc/app/config-provider/basic.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ test('测试自定义事件', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('config-provider#base')
66

7-
// 验证自定义方法
87
const demo = page.locator('#base')
8+
// 验证文字居中
9+
await expect(demo.locator('.tiny-alert')).toHaveCSS('justify-content', 'center')
10+
11+
// 验证自定义方法
912
await demo.locator('.tiny-config-provider .tiny-alert > .tiny-alert__close').click()
1013
await page.waitForTimeout(500)
1114
await expect(page.locator('.tiny-modal > .tiny-modal__box').nth(1)).toHaveText('触发自定方法')
1215

13-
// 验证文字居中
14-
await expect(demo.locator('.tiny-alert')).toHaveCSS('text-align', 'center')
15-
1616
// 验证必填星号
1717
await expect(demo.locator('.tiny-form')).toBeVisible()
1818
const beforeElement = await page.evaluate(() => {

0 commit comments

Comments
 (0)