forked from opentiny/tiny-vue
test(e2e): fix input e2e error (#2117)
This commit is contained in:
parent
9d05db8376
commit
ecedc485e3
|
@ -9,7 +9,7 @@ test('基本示例', async ({ page }) => {
|
||||||
await expect(input).toHaveAttribute('placeholder', 'Please input')
|
await expect(input).toHaveAttribute('placeholder', 'Please input')
|
||||||
|
|
||||||
await input.focus()
|
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 input.fill('hello')
|
||||||
await expect(input).toHaveValue('hello')
|
await expect(input).toHaveValue('hello')
|
||||||
|
|
|
@ -7,6 +7,6 @@ test('[Input]size', async ({ page }) => {
|
||||||
const small = page.locator('.demo-input > .tiny-input-small .tiny-input__inner')
|
const small = page.locator('.demo-input > .tiny-input-small .tiny-input__inner')
|
||||||
const mini = page.locator('.demo-input > .tiny-input-mini .tiny-input__inner')
|
const mini = page.locator('.demo-input > .tiny-input-mini .tiny-input__inner')
|
||||||
await expect(medium).toHaveCSS('height', '40px')
|
await expect(medium).toHaveCSS('height', '40px')
|
||||||
await expect(small).toHaveCSS('height', '32px')
|
await expect(small).toHaveCSS('height', '28px')
|
||||||
await expect(mini).toHaveCSS('height', '24px')
|
await expect(mini).toHaveCSS('height', '24px')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue