tiny-vue_version0/examples/sites/demos/pc/app/directives/auto-tip/basic-usage.spec.js

10 lines
441 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { test, expect } from '@playwright/test'
test('基本用法', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('directives-auto-tip#auto-tip-basic-usage')
await page.getByText('超出省略隐藏鼠标移入是会有ToolTip提示').hover()
await expect(page.getByRole('tooltip', { name: '超出省略隐藏鼠标移入是会有ToolTip提示' })).toBeVisible()
})