test(edges): zindex in sub flows
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user