Skip to content

Commit 7a024e7

Browse files
committed
fix(alert): fix e2e
1 parent 2d9bbb8 commit 7a024e7

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

examples/sites/demos/pc/app/alert/basic-usage.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ test('基本用法', async ({ page }) => {
77
const demo = page.locator('#basic-usage')
88
const alertBox = demo.locator('.tiny-alert')
99

10-
// 颜色边框正确
10+
// 颜色背景正确 暂时无边框
1111
await expect(alertBox.first()).toHaveCSS('background-color', 'rgb(222, 236, 255)')
12-
await expect(alertBox.first()).toHaveCSS('border-bottom-color', 'rgb(222, 236, 255)')
1312
await expect(alertBox.nth(1)).toHaveCSS('background-color', 'rgb(252, 227, 225)')
14-
await expect(alertBox.nth(1)).toHaveCSS('border-bottom-color', 'rgb(252, 227, 225)')
1513
await expect(alertBox.nth(2)).toHaveCSS('background-color', 'rgb(230, 242, 213)')
16-
await expect(alertBox.nth(2)).toHaveCSS('border-bottom-color', 'rgb(230, 242, 213)')
1714
await expect(alertBox.nth(3)).toHaveCSS('background-color', 'rgb(255, 235, 209)')
18-
await expect(alertBox.nth(3)).toHaveCSS('border-bottom-color', 'rgb(255, 235, 209)')
1915

2016
// 警告可见
2117
const alertSuccess = demo.locator('.tiny-alert--success')

examples/sites/demos/pc/app/alert/size.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ test('尺寸', async ({ page }) => {
66

77
const largeAlert = page.locator('.tiny-alert').nth(1)
88
await expect(largeAlert).toHaveClass(/tiny-alert--large/)
9-
await expect(largeAlert).toHaveCSS('height', '77px')
109
})

0 commit comments

Comments
 (0)