Improve audit diffs and gate image releases on main CI
Test / test (push) Failing after 3m43s

This commit is contained in:
bryanpedini committed 2026-11-20 18:43:07 +01:00
1 parent 65d16c2fc6
commit 32a0cf6801
6 files changed
+207 -39

No files matched your search

+3 -1
View File
@@ -207,7 +207,9 @@ test('script payloads render as plain text in the audit diff and the import prev
await expect(diff).toBeVisible();
const row = diff.locator('tbody tr').filter({ has: ui.page.locator('th', { hasText: new RegExp(`^(record ${id}\\.)?content$`) }) });
await expect(row).toHaveCount(1);
await expect(row.locator('td').nth(side === 'Before' ? 0 : 1)).toHaveText(JSON.stringify(content).replace(/\s+/g, ' '));
const marker = side === 'Before' ? '−' : '+';
const cell = row.getByRole('group', { name: side + ' content' });
await expect(cell).toHaveText(`${marker} Text: ${JSON.parse(content).text}`);
await expect(ui.page.locator('#app script, #app img')).toHaveCount(0);
};
const pwned = () => ui.page.evaluate(() => (window as unknown as { __pwned?: number }).__pwned);