test(edges): zindex in sub flows

This commit is contained in:
moklick
2025-06-26 12:12:13 +02:00
parent 323f07dd01
commit a7abcc0517
5 changed files with 94 additions and 2 deletions

View File

@@ -153,5 +153,26 @@ test.describe('Edges', () => {
await expect(edge).toHaveAttribute('marker-start', "url('#1__type=arrowclosed')");
await expect(edge).toHaveAttribute('marker-end', "url('#1__type=arrow')");
});
test('z-index', async ({ page }) => {
const svg = page.locator('svg', { has: page.locator('[data-id="edge-with-class"]') });
await expect(svg).toBeAttached();
await expect(svg).toHaveCSS('z-index', '0');
});
test('sub flow: normal node to child node, z-index', async ({ page }) => {
const svg = page.locator('svg', { has: page.locator('[data-id="subflow-edge"]') });
await expect(svg).toBeAttached();
await expect(svg).toHaveCSS('z-index', '1');
});
test('sub flow: child node to child node, z-index', async ({ page }) => {
const svg = page.locator('svg', { has: page.locator('[data-id="subflow-edge-2"]') });
await expect(svg).toBeAttached();
await expect(svg).toHaveCSS('z-index', '1');
});
});
});