migration to vite/playwright

This commit is contained in:
JFH
2025-11-29 11:31:34 +01:00
parent babd3490c9
commit a37fbac749
186 changed files with 2699 additions and 13224 deletions

View File

@@ -0,0 +1,28 @@
import { test, expect } from './fixtures.js'
import { setSvgSource, visitAndApproveStorage } from './helpers.js'
test.describe('Text tools', () => {
test.beforeEach(async ({ page }) => {
await visitAndApproveStorage(page)
})
test('creates and styles text', async ({ page }) => {
await setSvgSource(page, `<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
<g class="layer">
<title>Layer 1</title>
<text id="svg_1" x="200" y="200">AB</text>
</g>
</svg>`)
const firstText = page.locator('#svg_1')
await expect(firstText).toBeVisible()
await firstText.click()
await page.locator('#tool_clone').click()
await expect(page.locator('#svg_2')).toBeVisible()
await firstText.click()
await page.locator('#tool_bold').click()
await page.locator('#tool_italic').click()
})
})