tiny-vue/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts

20 lines
636 B
TypeScript

import { test, expect } from '../fixtures'
test('base', async ({ page }) => {
await page.goto('chart-heatmap#heatmap-base')
const chart = page.locator('#heatmap-base .hui-chart')
await expect(chart).toHaveScreenshot('base.png')
})
test('demo2', async ({ page }) => {
await page.goto('chart-heatmap#heatmap-demo2')
const chart = page.locator('#heatmap-demo2 .hui-chart')
await expect(chart).toHaveScreenshot('demo2.png')
})
test('demo3', async ({ page }) => {
await page.goto('chart-heatmap#heatmap-demo3')
const chart = page.locator('#heatmap-demo3 .hui-chart')
await expect(chart).toHaveScreenshot('demo3.png')
})