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, ` Layer 1 AB `) 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() }) })