tiny-vue/examples/sites/demos/pc/app/tabs/tooltip.spec.ts

14 lines
402 B
TypeScript

import { test, expect } from '@playwright/test'
test('提示是否正常', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('tabs#tooltip')
const tabs = page.locator('.tiny-tabs')
const tabsList = page.locator('.tiny-tabs > div')
const top = tabsList.first()
await top.hover()
await expect(tabs).toHaveClass(/tiny-tabs--left/)
})