diff --git a/e2e/admin/helpers/mia-form.ts b/e2e/admin/helpers/mia-form.ts index b919857..4d5b37f 100644 --- a/e2e/admin/helpers/mia-form.ts +++ b/e2e/admin/helpers/mia-form.ts @@ -150,44 +150,6 @@ export async function addMiaParameter( }); } -/** Ensure Plantilla exposes a child param label for MIA mapping UI. */ -export async function putPlantillaParameter( - request: APIRequestContext, - taskId: number, - options: { variable: string; label: string; templateHtml: string }, -): Promise { - const get = await request.get(`/backend/api/tasks/${taskId}`, { - headers: { 'X-SITMUN-Client': 'admin' }, - }); - expect(get.ok(), await get.text()).toBeTruthy(); - const task = (await get.json()) as { - name?: string; - properties?: Record; - }; - const put = await request.put(`/backend/api/tasks/${taskId}`, { - headers: { - 'X-SITMUN-Client': 'admin', - 'Content-Type': 'application/json', - }, - data: { - name: task.name, - properties: { - ...(task.properties ?? {}), - templateHtml: options.templateHtml, - parameters: [ - { - variable: options.variable, - label: options.label, - type: 'string', - required: false, - }, - ], - }, - }, - }); - expect(put.ok(), `put plantilla params: ${put.status()} ${await put.text()}`).toBeTruthy(); -} - export async function gotoMiaDetailsTab(page: Page): Promise { // common.form.details → "General information" / "Informació general" / … await page diff --git a/e2e/admin/helpers/template.ts b/e2e/admin/helpers/template.ts index 6b53b1d..4dc087a 100644 --- a/e2e/admin/helpers/template.ts +++ b/e2e/admin/helpers/template.ts @@ -51,17 +51,6 @@ export async function switchTemplateEditorToVisual(page: Page): Promise { await expect(editor.locator('textarea.template-editor-source')).toHaveCount(0); } -/** Insert a sibling paragraph at the start of the visual TipTap document (triggers serialize). */ -export async function insertVisualSiblingParagraph(page: Page, text: string): Promise { - await switchTemplateEditorToVisual(page); - const host = page.locator('app-template-editor .template-editor-host .ProseMirror').first(); - await expect(host).toBeVisible({ timeout: 15_000 }); - await host.click(); - await page.keyboard.press('ControlOrMeta+Home'); - await page.keyboard.type(text); - await page.keyboard.press('Enter'); -} - export async function setTemplateHtml(page: Page, html: string): Promise { await switchTemplateEditorToHtml(page); const source = page.locator('app-template-editor textarea.template-editor-source'); diff --git a/e2e/viewer/layer-catalog.spec.ts b/e2e/viewer/layer-catalog.spec.ts index 58cd049..afb3e50 100644 --- a/e2e/viewer/layer-catalog.spec.ts +++ b/e2e/viewer/layer-catalog.spec.ts @@ -111,17 +111,6 @@ function folderByTitle(page: Page, title: string) { }); } -async function expandNode(page: Page, nodeId: string): Promise { - const li = page.locator(`#tc-slot-toc li[data-layer-name="${nodeId}"]`); - await expect(li).toBeVisible({ timeout: 30_000 }); - const branch = li.locator(':scope > ul').first(); - if ((await branch.count()) > 0 && (await branch.isVisible())) { - return; - } - await li.locator('.tc-ctl-lcat-node-title, span').first().click(); - await expect(branch).toBeVisible({ timeout: 15_000 }); -} - async function patchTreeNodeLoadData( request: APIRequestContext, nodeDbId: number, diff --git a/tools/bin/report_schema_drift.py b/tools/bin/report_schema_drift.py index c3b6aa2..f994d14 100755 --- a/tools/bin/report_schema_drift.py +++ b/tools/bin/report_schema_drift.py @@ -518,10 +518,6 @@ def backfill_update_sql( return f"UPDATE {table} SET {column} = {lit} WHERE {column} IS NULL" -def _yaml_escape(s: str) -> str: - return s.replace('"', '\\"') - - def _append_not_null_with_backfill( lines: list[str], *,