tiny-vue/examples/sites/demos/pc/app/statistic/statistic-slot.spec.ts

12 lines
388 B
TypeScript

import { test, expect } from '@playwright/test'
test('插槽用法', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('statistic#statistic-slot')
await page
.locator('div')
.filter({ hasText: /^存储总量已使用容量\(GB\)10,010,258GB$/ })
.first()
await page.getByText('306,526存储平均值').click()
})