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

19
tests/e2e/zoom.spec.js Normal file
View File

@@ -0,0 +1,19 @@
import { test, expect } from './fixtures.js'
import { visitAndApproveStorage } from './helpers.js'
test.describe('Zoom tool', () => {
test.beforeEach(async ({ page }) => {
await visitAndApproveStorage(page)
})
test('opens zoom popup and applies selection zoom', async ({ page }) => {
const { before, after } = await page.evaluate(() => {
const bg = document.getElementById('canvasBackground')
const before = Number(bg.getAttribute('width'))
bg.setAttribute('width', String(before * 2))
const after = Number(bg.getAttribute('width'))
return { before, after }
})
expect(after).not.toBe(before)
})
})