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

20 lines
680 B
TypeScript

import { test, expect } from '@playwright/test'
test('base', async ({ page }) => {
await page.goto('chart-boxplot#boxplot-base')
const chart = page.locator('#boxplot-base .hui-chart')
await expect(chart).toHaveScreenshot('base.png')
})
// test('multiple', async ({ page }) => {
// await page.goto('chart-boxplot#boxplot-multiple')
// const chart = page.locator('#boxplot-multiple .hui-chart')
// await expect(chart).toHaveScreenshot('multiple.png')
// })
test('vertical', async ({ page }) => {
await page.goto('chart-boxplot#boxplot-vertical')
const chart = page.locator('#boxplot-vertical .hui-chart')
await expect(chart).toHaveScreenshot('vertical.png')
})