tiny-vue_version0/examples/sites/demos/pc/app/crop/basic-usage.spec.ts

13 lines
606 B
TypeScript

import { test, expect } from '@playwright/test'
test('基本用法', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('crop#basic-usage')
await page.getByRole('button', { name: '图片裁剪' }).click()
await page.locator('div:nth-child(4) > .tiny-svg').click()
await page.locator('.tiny-crop__dialog-content__handle__button > div:nth-child(5)').click()
await page.locator('div:nth-child(6) > .tiny-svg').click()
await page.locator('div:nth-child(5) > .tiny-svg').click()
await page.locator('div:nth-child(8) > .tiny-svg').click()
})