forked from opentiny/tiny-vue
fix(test): [tabs] Fix e2e test cases (#1613)
This commit is contained in:
parent
d4c2e6d1e5
commit
faf857c229
|
@ -4,7 +4,8 @@ test('自动撑宽', async ({ page }) => {
|
|||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||||
await page.goto('tabs#stretch-wh')
|
||||
|
||||
const { width } = await page.getByRole('tab', { name: '表单组件,测试标签页宽度根据标题长度自动撑开' }).boundingBox()
|
||||
const tabItem = page.getByRole('tab', { name: '表单组件,测试标签页宽度根据标题长度自动撑开' })
|
||||
|
||||
await expect(width).toBeGreaterThanOrEqual(360)
|
||||
await tabItem.isVisible()
|
||||
await expect(tabItem).toHaveCSS('flex-grow', '1')
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue