forked from opentiny/tiny-vue
13 lines
441 B
TypeScript
13 lines
441 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('BulletinBoard 基于Route的跳转', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('bulletin-board#route')
|
|
|
|
const preview = page.locator('#route')
|
|
const contentTitle = preview.locator('.tiny-bulletin-board__textTitle')
|
|
|
|
// 判断a标签href属性值
|
|
await expect(contentTitle).toHaveAttribute('href', '/#/Alert')
|
|
})
|