forked from opentiny/tiny-vue
12 lines
406 B
TypeScript
12 lines
406 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('多层级标签页', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('tabs#tabs-second-layer')
|
|
|
|
const tabs1 = page.locator('.tiny-tabs').first()
|
|
const content1 = tabs1.getByRole('tabpanel').locator('.tiny-tabs')
|
|
|
|
await expect(content1.first()).toHaveClass(/tiny-tabs--button-card/)
|
|
})
|