2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-15 15:58:48 +00:00

fix(frontend): Template Editor Rendering Issues (#11601)

* fix order

* general bump

* allign @codemirror

* fix style

* add playwright test

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
Matthias Mair
2026-03-26 21:29:03 +01:00
committed by GitHub
parent 7e18555a6b
commit 8b67fe5e99
3 changed files with 666 additions and 435 deletions

View File

@@ -1,3 +1,4 @@
import type { Locator } from '@playwright/test';
import { expect, test } from './baseFixtures.js';
import { adminuser } from './defaults.js';
import { activateTableView, loadTab } from './helpers.js';
@@ -117,6 +118,14 @@ test('Printing - Report Editing', async ({ browser }) => {
.getByRole('cell', { name: 'InvenTree Stock Item Label (' })
.click();
// check that styles are applied correctly
await expect(page.getByText('{% block style %}')).toBeVisible();
const element: Locator = page.getByText('block').first();
const color = await element.evaluate((el) => {
return window.getComputedStyle(el).getPropertyValue('color');
});
expect(color).toBe('rgb(78, 201, 176)');
// Generate preview
await page.getByLabel('split-button-preview-options-action').click();
await page