test(e2e): fix input e2e error (#2117)

This commit is contained in:
ajaxzheng 2024-09-14 09:35:35 +08:00 committed by GitHub
parent 9d05db8376
commit ecedc485e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ test('基本示例', async ({ page }) => {
await expect(input).toHaveAttribute('placeholder', 'Please input')
await input.focus()
await expect(input).toHaveCSS('border', '1px solid rgb(94, 124, 224)')
await expect(input).toHaveCSS('border', '1px solid rgb(25, 25, 25)')
await input.fill('hello')
await expect(input).toHaveValue('hello')

View File

@ -7,6 +7,6 @@ test('[Input]size', async ({ page }) => {
const small = page.locator('.demo-input > .tiny-input-small .tiny-input__inner')
const mini = page.locator('.demo-input > .tiny-input-mini .tiny-input__inner')
await expect(medium).toHaveCSS('height', '40px')
await expect(small).toHaveCSS('height', '32px')
await expect(small).toHaveCSS('height', '28px')
await expect(mini).toHaveCSS('height', '24px')
})